Skip to main content

set_constant

Method of ComplexArray.

Overloads​

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

set_constant(integer c) -> ComplexArray​

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

Parameters​

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

set_constant(bool c) -> ComplexArray​

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

Parameters​

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

set_constant(complex c) -> ComplexArray​

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

Parameters​

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

set_constant(real c) -> ComplexArray​

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

Parameters​

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