Back to Sparse Matrices
spconvert
Convert [i, j, v] row data to sparse (1-based indices).
Syntax
spconvert(D: NDArray) → r
Backends
TypeScriptnumwa
Description
Convert [i, j, v] row data to sparse (1-based indices).
Returns
Examples
Try It
>> spconvert([1, 1, 5; 2, 2, 10; 3, 3, 15])