full#

bamengine.ops.full(n, value)[source]#

Create array filled with constant value.

Parameters:
  • n (int) – Number of elements.

  • value (float) – Fill value.

Returns:

Array of n elements, all equal to value.

Return type:

array

Examples

>>> import bamengine.ops as ops
>>> initial_price = ops.full(100, 1.5)
>>> # Array of 100 elements, all 1.5