Logo Search packages:      
Sourcecode: feel++ version File versions  Download package

template<typename MatrixType >
ei_traits< MatrixType >::Scalar FullPivLU< MatrixType >::determinant (  ) const
the determinant of the matrix of which *this is the LU decomposition. It has only linear complexity (that is, O(n) where n is the dimension of the square matrix) as the LU decomposition has already been computed.
This is only for square matrices.
For fixed-size matrices of size up to 4, MatrixBase::determinant() offers optimized paths.
a determinant can be very big or small, so for matrices of large enough dimension, there is a risk of overflow/underflow.
See also:

Definition at line 522 of file FullPivLU.h.

  ei_assert(m_isInitialized && "LU is not initialized.");
  ei_assert(m_lu.rows() == m_lu.cols() && "You can't take the determinant of a non-square matrix!");
  return Scalar(m_det_pq) * Scalar(m_lu.diagonal().prod());

Generated by  Doxygen 1.6.0   Back to index