mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]

Utilities for working with a modal basis. More...

Utilities for working with a modal basis.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file basis.hpp.

Go to the source code of this file.

Namespaces

 mx
 The mxlib c++ namespace.
 

Functions

template<typename realT >
void mx::AO::applyPupil2Basis (eigenCube< realT > &modes, const std::string &basisName, const std::string &pupilName, realT fwhm=0)
 Multiply a raw modal basis by a pupil mask.
More...
 
template<typename realT >
void mx::AO::orthogonalizeBasis (const std::string &orthoName, const std::string &basisName, const std::string &pupilName, int method)
 Calculate an orthogonal projection of a basis on a pupil. More...
 

Function Documentation

◆ applyPupil2Basis()

template<typename realT >
void mx::AO::applyPupil2Basis ( eigenCube< realT > &  modes,
const std::string &  basisName,
const std::string &  pupilName,
realT  fwhm = 0 
)

Multiply a raw modal basis by a pupil mask.

Definition at line 38 of file basis.hpp.

References mx::AO::applyPupil2Basis().

Referenced by mx::AO::applyPupil2Basis().

◆ orthogonalizeBasis()

template<typename realT >
void mx::AO::orthogonalizeBasis ( const std::string &  orthoName,
const std::string &  basisName,
const std::string &  pupilName,
int  method 
)

Calculate an orthogonal projection of a basis on a pupil.

Can use either the stabilized Gramm Schmidt (SGS) procedure, or Singular Value Decomposition (SVD). This calls applyPupil2Basis as a first step..

Parameters
[in]basisNamethe name of the basis to orthogonalize
[in]pupilNamethe name of the pupil on which to orthogonalize.
[in]methodeither MXAO_ORTHO_METHOD_SGS (for SGS) or MXAO_ORTHO_METHOD_SVD (for SVD)
Template Parameters
realT

Definition at line 152 of file basis.hpp.