range#

static vectorious.range(start, step, stop)#

Creates an array containing a range (can be either ascending or descending) of numbers specified by the arguments provided (e.g. NDArray.range(0, .5, 2) gives an array containing all numbers in the interval [0, 2) separated by steps of 0.5)

Arguments:
  • start (Number)

  • step (Number)

  • stop (Number)

Returns:

NDArray

Examples:

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

range(1, 2, 9); // => array([1, 3, 5, 7])