public static Matrix PointwiseProduct(Matrix lhs, Matrix rhs, Matrix OUT) { if (lhs.GetRows() != rhs.GetRows() || lhs.GetCols() != rhs.GetCols()) { Debug.Log("Incompatible Matrix dimensions."); } else { Eigen.PointwiseProduct(lhs.Ptr, rhs.Ptr, OUT.Ptr); } return(OUT); }
public static Tensor PointwiseProduct(Tensor lhs, Tensor rhs, Tensor OUT) { if (lhs.GetRows() != rhs.GetRows() || lhs.GetCols() != rhs.GetCols()) { Debug.Log("Incompatible tensor dimensions."); } else { Eigen.PointwiseProduct(lhs.Ptr, rhs.Ptr, OUT.Ptr); } return(OUT); }
public Tensor PointwiseProduct(Tensor LHS, Tensor RHS, Tensor OUT) { Eigen.PointwiseProduct(LHS.Ptr, RHS.Ptr, OUT.Ptr); return(OUT); }