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); }
public static ILinAlg.ILinAlgMat AddDisposable(this ILinAlg.ILinAlgMat mat) { ILinAlg.AddDisposable(mat); return(mat); }