Skip to main content

set_constant

Method of RealArray.

Overloads

NameDescription
set_constant(integer c) -> RealArraySets all elements of the RealArray lhs to the constant c.
set_constant(bool c) -> RealArraySets all elements of the RealArray lhs to the constant c.
set_constant(real c) -> RealArraySets all elements of the RealArray lhs to the constant c.

set_constant(integer c) -> RealArray

Sets all elements of the RealArray lhs to the constant c.

Parameters

  • c: The constant value to set all elements to.

set_constant(bool c) -> RealArray

Sets all elements of the RealArray lhs to the constant c.

Parameters

  • c: The constant value to set all elements to.

set_constant(real c) -> RealArray

Sets all elements of the RealArray lhs to the constant c.

Parameters

  • c: The constant value to set all elements to.