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

Method Identity

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

Source from the content-addressed store, hash-verified

294 /** Initializes a identity matrix of size SizeAtCompileTime */
295 EIGEN_DEVICE_FUNC
296 static const InitializeReturnType Identity() { return DiagonalVectorType::Ones().asDiagonal(); }
297 /** Initializes a identity matrix of size dim */
298 EIGEN_DEVICE_FUNC
299 static const InitializeReturnType Identity(Index size) { return DiagonalVectorType::Ones(size).asDiagonal(); }

Callers

nothing calls this directly

Calls 1

asDiagonalMethod · 0.80

Tested by

no test coverage detected