www.mooseframework.org
MatrixTools.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "MooseTypes.h"
13 #include <petsc.h>
14 #include <vector>
15 
16 namespace MatrixTools
17 {
26 void inverse(const std::vector<std::vector<Real>> & m, std::vector<std::vector<Real>> & m_inv);
27 
36 void inverse(std::vector<PetscScalar> & A, unsigned int n);
37 }
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:23