Example #1
0
 public Tensor Blend(Tensor T, Tensor W, float w)
 {
     if (T.GetRows() != W.GetRows() || T.GetCols() != W.GetCols())
     {
         Debug.Log("Incompatible dimensions for blending.");
         return(T);
     }
     else
     {
         Eigen.Blend(T.Ptr, W.Ptr, w);
         return(T);
     }
 }
Example #2
0
 public Matrix Blend(Matrix M, Matrix W, float w)
 {
     if (M.GetRows() != W.GetRows() || M.GetCols() != W.GetCols())
     {
         Debug.Log("Incompatible dimensions for blending.");
         return(M);
     }
     else
     {
         Eigen.Blend(M.Ptr, W.Ptr, w);
         return(M);
     }
 }
 public Tensor Blend(Tensor T, Tensor W, float w)
 {
     Eigen.Blend(T.Ptr, W.Ptr, w);
     return(T);
 }