ones#

static vectorious.ones()#

Creates an array containing ones (1) of shape shape

Arguments:
  • ...shape (Array.<Number>)

Returns:

NDArray

Examples:

import { ones } from 'vectorious/core/ones';

ones(3); // => array([1, 1, 1])