la4j
la4j copied to clipboard
Sparse Matrix, self additon w/ transpose
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?