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

Creates a new NDArray filled with a given value.

Parameters
ParameterDescription
shapeThe shape of the array.
valueThe fill value.
Returns

A new filled NDArray.

Throws
  • NullException if shape is null at runtime; statically null arguments are rejected with TypeError.
Example
a = NDArray<Int>.full([2, 3], 7)