Equana

Docs/NDArray Operations/ndarray_zeros
Back to NDArray Operations

ndarray_zeros

Create a vector or matrix of zeros.

Syntax

ndarray_zeros(n: Int64) → r

Backends

TypeScriptnumwa

Description

Create a vector or matrix of zeros.

Parameters

NameDescription
nNumber of rows (or length for 1D)

Returns

NDArray filled with zeros

Examples

Try It
>> ndarray_zeros(3)
[0, 0, 0]
Try It
>> ndarray_zeros(2, 3)
2×3 matrix of zeros