mathnet-numerics
mathnet-numerics copied to clipboard
SetSubmatrix() method, issue
I have a very large matrix, it has 3014010 rows and 1338 columns, I want to use the SetSubMatrix() method to set a part of this matrix equal to an other matrix(matrix is 134 * 134) but the SetSubMatrix() method is very slow.... Any suggestions ?
Hi,
Is your matrix maybe sparse? I am looking at the implementation of the dense matrix storage (DenseColumnMajorMatrixStorage.CopyToUnchecked) and this seems pretty efficient to me, using an array copy (no for-loop)
Do you have some sample code which you could share?
@MohammadrezaMC2 any feedback here?