https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MatrixTools.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
16namespace MatrixTools
17{
26void inverse(const std::vector<std::vector<Real>> & m, std::vector<std::vector<Real>> & m_inv);
27
36void 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