klyn.math.NDArray.full
method
public static full(shape as IList<Int>, value as T) as NDArray<T>:
Description

Creates a new NDArray filled with a given value.

Parameters
ParameterDescription
shapeThe shape dimensions.
valueThe fill value.
Returns

A new filled NDArray.

Example
a = NDArray<Int>.full([2, 3], 7)