www.mooseframework.org
MatrixTools.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef MATRIXTOOLS_H
8 #define MATRIXTOOLS_H
9 
10 #include "MooseTypes.h"
11 #include <petsc.h>
12 #include <vector>
13 
14 namespace MatrixTools
15 {
24 void inverse(const std::vector<std::vector<Real>> & m, std::vector<std::vector<Real>> & m_inv);
25 
34 void inverse(std::vector<PetscScalar> & A, unsigned int n);
35 }
36 
37 #endif // MATRIXTOOLS_H
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.
Definition: MatrixTools.C:25
static PetscErrorCode Mat * A
PetscInt m
PetscInt n