Skip to main content

set_constant

Method of RealMatrix.

Overloads

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

set_constant(real c) -> RealMatrix

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

Parameters

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

set_constant(bool c) -> RealMatrix

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

Parameters

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

set_constant(integer c) -> RealMatrix

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

Parameters

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