Skip to content

Latest commit

 

History

History
63 lines (31 loc) · 766 Bytes

File metadata and controls

63 lines (31 loc) · 766 Bytes

Home > @josh-brown/vector > VectorBuilder > zeros

VectorBuilder.zeros() method

Constructs a vector of all zeros

Signature:

zeros(dimension: number): V;

Parameters

Parameter

Type

Description

dimension

number

The dimension of the vector to construct

Returns:

V

The new vector

Example

vectorBuilder.zeros(3); // [ 0 0 0 ]