Ejemplo n.º 1
0
 public static Tensor PointwiseQuotient(Tensor lhs, Tensor rhs, Tensor OUT)
 {
     if (lhs.GetRows() != rhs.GetRows() || lhs.GetCols() != rhs.GetCols())
     {
         Debug.Log("Incompatible tensor dimensions.");
     }
     else
     {
         Eigen.PointwiseQuotient(lhs.Ptr, rhs.Ptr, OUT.Ptr);
     }
     return(OUT);
 }
Ejemplo n.º 2
0
 public static Matrix PointwiseQuotient(Matrix lhs, Matrix rhs, Matrix OUT)
 {
     if (lhs.GetRows() != rhs.GetRows() || lhs.GetCols() != rhs.GetCols())
     {
         Debug.Log("Incompatible Matrix dimensions.");
     }
     else
     {
         Eigen.PointwiseQuotient(lhs.Ptr, rhs.Ptr, OUT.Ptr);
     }
     return(OUT);
 }