src/creation

Procs

proc newArange(dims: openArray[int]; start: float; stop: float; step: float): NDArray {.
    ...raises: [ValueError], tags: [], forbids: [].}

Creates a new ndarray with evenly spaced values (int version).

Convenience overload that accepts int arrays instead of csize_t.

See also:

proc newLinspace(dims: openArray[int]; start: float; stop: float; num: csize_t): NDArray {.
    ...raises: [ValueError], tags: [], forbids: [].}

Creates a new ndarray with linearly spaced values (int version).

Convenience overload that accepts int arrays instead of csize_t.

See also: