New answers tagged sparse-arrays
4
You seem to do something wrong because the LIL you provide is more suitable to assemble the transpose of the desired matrix in CRS format (or to assemble the desired matrix in CCS format). Since Mathematica uses CRS, I show you how to assemble the transpose.
First two compiled helper functions:
getColumnIndices = Compile[{{p, _Integer, 1}, {a, _Integer, 2}},
...
answered Dec 20 '20 at 22:16
Henrik Schumacher
84.8k66 gold badges131131 silver badges240240 bronze badges
Top 50 recent answers are included
Related Tags
sparse-arrays × 271matrix × 98
performance-tuning × 58
linear-algebra × 57
list-manipulation × 48
bugs × 23
eigenvalues × 10
memory × 9
replacement × 7
parallelization × 7
export × 6
array × 6
crash × 6
graphs-and-networks × 5
import × 5
associations × 5
tensors × 5
algorithm × 5
differential-equations × 4
numerics × 4
pattern-matching × 4
table × 4
finite-element-method × 4
equation-solving × 3
functions × 3