sparse#
Create a sparse matrix.
Available in: math cells, REPL.
Syntax#
sparse()
sparse([a1, b1, ...; a1, b2, ...])
sparse([a1, b1, ...; a1, b2, ...], "number")
Arguments and behavior#
Creates a sparse matrix. Sparse storage is useful for matrices with many zeros; it is still rendered as a matrix result.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
sparse()Interactive examples could not load. You can still copy the expressions.
Expected result: matrix.
See also#
bignumber · boolean · complex · index · number · string · unit · matrix