MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / setIdentity

Method setIdentity

include/Eigen/Eigen/src/Core/DiagonalMatrix.h:311–312  ·  view source on GitHub ↗

Sets this matrix to be the identity matrix of the current size. */

Source from the content-addressed store, hash-verified

309 inline void setZero(Index size) { m_diagonal.setZero(size); }
310 /** Sets this matrix to be the identity matrix of the current size. */
311 EIGEN_DEVICE_FUNC
312 inline void setIdentity() { m_diagonal.setOnes(); }
313 /** Sets this matrix to be the identity matrix of the given size. */
314 EIGEN_DEVICE_FUNC
315 inline void setIdentity(Index size) { m_diagonal.setOnes(size); }

Callers 2

unblockedMethod · 0.45
reconstructedMatrixMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected