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