Skip to main content

set_identity

Method of ComplexMatrix.

Overloads

NameDescription
set_identity() -> ComplexMatrixSets the ComplexMatrix lhs to the identity matrix.
set_identity(integer rows, integer cols) -> ComplexMatrixSets the ComplexMatrix lhs to the identity matrix (not necessarily square).

set_identity() -> ComplexMatrix

Sets the ComplexMatrix lhs to the identity matrix.

set_identity(integer rows, integer cols) -> ComplexMatrix

Sets the ComplexMatrix lhs to the identity matrix (not necessarily square).

Parameters

  • rows: The number of rows for the identity matrix.
  • cols: The number of columns for the identity matrix.