la4j icon indicating copy to clipboard operation
la4j copied to clipboard

Sparse Matrix, self additon w/ transpose

Open aintHuman opened this issue 5 years ago • 0 comments

So I have a square sparse matrix:

SparseMatrix m = new CRSMatrix(n,n)

And I need to add to transpose of itself to enforce symmetry:

m = (SparseMatrix)m.add(m.transpose())

However the performance is not so good, taking several seconds to execute.

Which is the best way of achieving this operation using la4j?

aintHuman avatar Dec 12 '19 09:12 aintHuman