chombo-discharge
Loading...
Searching...
No Matches
Namespaces | Functions
CD_LaPackUtils.H File Reference

Interface to some LaPack routines. More...

#include <vector>
#include <CD_NamespaceHeader.H>
#include <CD_NamespaceFooter.H>
Include dependency graph for CD_LaPackUtils.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LaPackUtils
 Namespace containing various useful linear algebra routines using LaPACK.
 

Functions

int LaPackUtils::linearIndex (const int irow, const int jcol, const int M, const int N)
 Get the index in the linearized matrix of size MxN.
 
bool LaPackUtils::computeSVD (std::vector< double > &a_linU, std::vector< double > &a_linSigma, std::vector< double > &a_linVtran, const std::vector< double > &a_linA, const int &a_M, const int &a_N)
 Compute the singular value decomposition of a matrix.
 
bool LaPackUtils::computeSVD (std::vector< float > &a_linU, std::vector< float > &a_linSigma, std::vector< float > &a_linVtran, const std::vector< float > &a_linA, const int &a_M, const int &a_N)
 Compute the singular value decomposition of a matrix.
 
bool LaPackUtils::computePseudoInverse (std::vector< double > &a_linAplus, const std::vector< double > &a_linA, const int &a_M, const int &a_N)
 Compute the pseudoinverse of matrix through singular value decomposition.
 
bool LaPackUtils::computePseudoInverse (std::vector< float > &a_linAplus, const std::vector< float > &a_linA, const int &a_M, const int &a_N)
 Compute the pseudoinverse of matrix through singular value decomposition.
 
void LaPackUtils::linearizeMatrix (std::vector< double > &a_linA, int &a_M, int &a_N, const std::vector< std::vector< double > > &a_A, const char &a_format)
 Linearize a matrix to column major Fortran form by assuming row or major column format of the input matrix.
 
void LaPackUtils::linearizeColumnMajorMatrix (std::vector< double > &a_linA, int &a_M, int &a_N, const std::vector< std::vector< double > > &a_A)
 Linearize a matrix to column major Fortran form by column major format of the input matrix.
 
void LaPackUtils::linearizeRowMajorMatrix (std::vector< double > &a_linA, int &a_M, int &a_N, const std::vector< std::vector< double > > &a_A)
 Linearize a matrix to column major Fortran form by row major format of the input matrix.
 
void LaPackUtils::deLinearizeMatrix (std::vector< std::vector< double > > &a_A, const int &a_M, const int &a_N, const std::vector< double > &a_linA, const char &a_format)
 Delinearize a linearized matrix from column major Fortran to row or major column matrix format.
 
void LaPackUtils::deLinearizeColumnMajorMatrix (std::vector< std::vector< double > > &a_A, const int &a_M, const int &a_N, const std::vector< double > &a_linA)
 Delinearize a linearized matrix from column major Fortran to column major form.
 
void LaPackUtils::deLinearizeRowMajorMatrix (std::vector< std::vector< double > > &a_A, const int &a_M, const int &a_N, const std::vector< double > &a_linA)
 Delinearize a linearized matrix from column major Fortran to row major form.
 

Detailed Description

Interface to some LaPack routines.

Note
The routines in this file are double precision only.
Author
Robert Marskar