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.
a = NDArray<Int>.full([2, 3], 7)
Parameters
  • shape The shape dimensions.
  • value The fill value.
Returns
A new filled NDArray. ``` a = NDArray<Int>.full([2, 3], 7) ```