Example #1
0
        public static Matrix ToMatrix(this ILinAlg.ILinAlgMat AA)
        {
            Matrix A = Matrix.Zeros(AA.ColSize, AA.RowSize);

            for (int c = 0; c < A.ColSize; c++)
            {
                for (int r = 0; r < A.RowSize; r++)
                {
                    A[c, r] = AA[c, r];
                }
            }
            return(A);
        }
Example #2
0
 public static ILinAlg.ILinAlgMat AddDisposable(this ILinAlg.ILinAlgMat mat)
 {
     ILinAlg.AddDisposable(mat);
     return(mat);
 }