Skip to main content

set_identity

Method of RealMatrix.

Overloads​

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

set_identity(integer rows, integer cols) -> RealMatrix​

Sets the RealMatrix 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.

set_identity() -> RealMatrix​

Sets the RealMatrix lhs to the identity matrix.