Wilang Documentation1.0.0+4

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()

Expected result: matrix.

See also#

bignumber · boolean · complex · index · number · string · unit · matrix

All functions · Math guides