set_identity
Method of RealMatrix.
Overloads
| Name | Description |
|---|---|
set_identity() -> RealMatrix | Sets 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). |
set_identity() -> RealMatrix
Sets 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.