klyn.math.NDArray.full
method
public static full(shape as Tuple, value as T) as NDArray<T>:
Description
Creates a new NDArray filled with a given value using a tuple shape.
a = NDArray<Int>.full((2, 3), 7)
Parameters
  • shape Fixed-size tuple of dimensions.
  • value The fill value.
Returns
A new filled NDArray.