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

Method Zero

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

Source from the content-addressed store, hash-verified

288 /** Initializes a diagonal matrix of size SizeAtCompileTime with coefficients set to zero */
289 EIGEN_DEVICE_FUNC
290 static const InitializeReturnType Zero() { return DiagonalVectorType::Zero().asDiagonal(); }
291 /** Initializes a diagonal matrix of size dim with coefficients set to zero */
292 EIGEN_DEVICE_FUNC
293 static const InitializeReturnType Zero(Index size) { return DiagonalVectorType::Zero(size).asDiagonal(); }

Callers

nothing calls this directly

Calls 1

asDiagonalMethod · 0.80

Tested by

no test coverage detected