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

Creates a new NDArray filled with a given value.

Parameters
  • shape The shape of the array.
  • value The fill value.
Returns

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