IT++ Logo Newcom Logo

Determinant


Functions

double itpp::det (const mat &X)
 Determinant of real square matrix.
std::complex< double > itpp::det (const cmat &X)
 Determinant of complex square matrix.

Function Documentation

double itpp::det ( const mat X  ) 

Determinant of real square matrix.

Calculate determinant of the real matrix $\mathbf{X}$

Uses LU-factorisation.

\[ \det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]

and the determinant of the permuation matrix is $ \pm 1$ dependening on the number of row permuations

Definition at line 46 of file det.cpp.

References it_assert1, and itpp::lu().

std::complex< double > itpp::det ( const cmat X  ) 

Determinant of complex square matrix.

Calculate determinant of the complex matrix $\mathbf{X}$

Uses LU-factorisation.

\[ \det(\mathbf{X}) = \det(\mathbf{P}^T \mathbf{L}) \det(\mathbf{U}) = \det(\mathbf{P}^T) \prod(\mathrm{diag}(\mathbf{U})) \]

and the determinant of the permuation matrix is $ \pm 1$ dependening on the number of row permuations

Definition at line 79 of file det.cpp.

References it_assert1, and itpp::lu().

SourceForge Logo

Generated on Thu Apr 19 14:18:34 2007 for IT++ by Doxygen 1.5.1