Wilang Documentation1.0.0+4

zeros#

Create a matrix containing zeros.

Available in: math cells, REPL.

Syntax#

zeros(m)
zeros(m, n)
zeros(m, n, p, ...)
zeros([m])
zeros([m, n])
zeros([m, n, p, ...])

Arguments and behavior#

For matrices, dimensions must match the operation. Singular matrices or incompatible shapes can fail. Cell indexing starts at 1. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
zeros(3)

Expected result: matrix.

See also#

concat · det · diag · identity · inv · ones · range · size · squeeze · subset · trace · transpose

All functions · Math guides