Functions | |
void | inverse (const std::vector< std::vector< Real >> &m, std::vector< std::vector< Real >> &m_inv) |
Inverse the dense square matrix m using LAPACK routines. More... | |
void | inverse (std::vector< PetscScalar > &A, unsigned int n) |
Inverts the dense "matrix" A using LAPACK routines. More... | |
void MatrixTools::inverse | ( | const std::vector< std::vector< Real >> & | m, |
std::vector< std::vector< Real >> & | m_inv | ||
) |
Inverse the dense square matrix m using LAPACK routines.
If you need to invert a matrix "in place", make the two arguments the same @ param m The matrix to invert @ param[out] m_inv The inverse of m, which must be of the same size as m. @ return if zero then the inversion was successful. Otherwise m was not square, contained illegal entries or was singular
Definition at line 23 of file MatrixTools.C.
Referenced by RankFourTensorTempl< T >::invSymm(), Moose::SlepcSupport::mooseSlepcEPSMonitor(), and EigenProblem::outputInverseEigenvalue().
Inverts the dense "matrix" A using LAPACK routines.
A | upon input this is a row vector representing a square matrix of size sqrt(n)*sqrt(n). Upon output it is the inverse (as a row-vector) |
n | size of the vector A |
Definition at line 49 of file MatrixTools.C.