Skip to main content

set_constant

Method of ComplexMatrix.

Overloads​

NameDescription
set_constant(real c) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to the constant c.
set_constant(integer c) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to the constant c.
set_constant(bool c) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to the constant c.
set_constant(complex c) -> ComplexMatrixSets all elements of the ComplexMatrix lhs to the constant c.

set_constant(real c) -> ComplexMatrix​

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

Parameters​

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

set_constant(integer c) -> ComplexMatrix​

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

Parameters​

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

set_constant(bool c) -> ComplexMatrix​

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

Parameters​

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

set_constant(complex c) -> ComplexMatrix​

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

Parameters​

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