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

Method determinant

include/Eigen/Eigen/src/Core/TriangularMatrix.h:321–330  ·  view source on GitHub ↗

\returns the determinant of the triangular matrix * \sa MatrixBase::determinant() */

Source from the content-addressed store, hash-verified

319 /** \returns the determinant of the triangular matrix
320 * \sa MatrixBase::determinant() */
321 EIGEN_DEVICE_FUNC
322 Scalar determinant() const
323 {
324 if (Mode & UnitDiag)
325 return 1;
326 else if (Mode & ZeroDiag)
327 return 0;
328 else
329 return m_matrix.diagonal().prod();
330 }
331
332 protected:
333

Callers

nothing calls this directly

Calls 2

prodMethod · 0.45
diagonalMethod · 0.45

Tested by

no test coverage detected