LSProblem< dim > Class Template Reference

#include <LSProblem.H>

List of all members.

template<int dim>
class LSProblem< dim >


Public Member Functions

 ~LSProblem ()
 LSProblem (const int &a_degreeP, const bool &a_useConstraints)
 LSProblem (const int &a_orderAccuracy, const int &a_degreeP, const bool &a_useConstraints, const IndexTM< Real, dim > &a_normal)
int invertNormalEq (const Vector< Real > &a_rhs, Vector< Real > &a_residual)
int getDegree ()
int getOrderAccuracy ()
void getMatrix (Real **a_matrix)
void getRhs (Vector< Real > &a_rhs)
void getUnknowns (Vector< Real > &a_unknown)
void monoMaxMin (Real &a_maxVal, Real &a_minVal, const IndexTM< int, dim > &a_mono, const IFData< dim > &a_IFData)
void computeBounds (const IndexTM< Real, dim > &a_dx, const CutCellMoments< dim > &a_ccm)
void print (ostream &a_out) const
void outputMatrix () const
void outputRhs () const
void outputUnknowns () const
void outputBounds () const
const LocPthMomentgetLocMonomialMapDegreeP () const
const PthMomentLocgetMonomialLocMapDegreeP () const
const PthMomentLocgetMonomialLocMapDegreePLess1 () const
Real getUnknown (int loc)
int getNumberDegP ()
int getNumberDegPLess1 ()
int numActiveBounds () const
void setRhs (const Vector< Real > &a_rhs)
void setMatrix ()
void momentBounds (Real &a_lobnd, Real &a_hibnd, const IvDim &a_mono, const IFData< dim > &a_ifData)
void differentiate (int &a_coeff, IvDim &a_Dmono, int &a_idir, const IvDim &a_mono)
int nChooseR (int a_n, int a_r)
void fillMap (PthMomentLoc &a_monoLoc, LocPthMoment &a_locMono, const int &a_degree)
int numMonomials (const int &a_monoDegree)
int factorial (const int &a_n, const int &a_m=0)
void allocArray (const int &a_rows, const int &a_cols, Real **&a_A)
void freeArray (const int &a_rows, const int &a_cols, Real **&a_A)

Public Attributes

int m_order
int m_degreeP
int m_numActiveBounds
bool m_useConstraints
IndexTM< Real, dimm_normal
PthMomentLoc m_monoLocP
LocPthMoment m_locMonoP
int m_numP
PthMomentLoc m_monoLocPLess1
LocPthMoment m_locMonoPLess1
int m_numPLess1
Real ** m_matrix
Vector< Realm_unknowns
Vector< Realm_rhs
Vector< Realm_lowerBound
Vector< Realm_upperBound

Private Types

typedef IndexTM< int, dimIvDim
typedef map< IvDim, int > PthMomentLoc
typedef map< int, IvDimLocPthMoment

Member Typedef Documentation

template<int dim>
typedef IndexTM<int,dim> LSProblem< dim >::IvDim [private]

template<int dim>
typedef map<IvDim,int > LSProblem< dim >::PthMomentLoc [private]

template<int dim>
typedef map<int,IvDim> LSProblem< dim >::LocPthMoment [private]


Constructor & Destructor Documentation

template<int dim>
LSProblem< dim >::~LSProblem (  )  [inline]

template<int dim>
LSProblem< dim >::LSProblem ( const int &  a_degreeP,
const bool &  a_useConstraints 
) [inline]

template<int dim>
LSProblem< dim >::LSProblem ( const int &  a_orderAccuracy,
const int &  a_degreeP,
const bool &  a_useConstraints,
const IndexTM< Real, dim > &  a_normal 
) [inline]


Member Function Documentation

template<int dim>
int LSProblem< dim >::invertNormalEq ( const Vector< Real > &  a_rhs,
Vector< Real > &  a_residual 
) [inline]

template<int dim>
int LSProblem< dim >::getDegree (  )  [inline]

template<int dim>
int LSProblem< dim >::getOrderAccuracy (  )  [inline]

template<int dim>
void LSProblem< dim >::getMatrix ( Real **  a_matrix  ) 

template<int dim>
void LSProblem< dim >::getRhs ( Vector< Real > &  a_rhs  ) 

template<int dim>
void LSProblem< dim >::getUnknowns ( Vector< Real > &  a_unknown  ) 

template<int dim>
void LSProblem< dim >::monoMaxMin ( Real a_maxVal,
Real a_minVal,
const IndexTM< int, dim > &  a_mono,
const IFData< dim > &  a_IFData 
) [inline]

template<int dim>
void LSProblem< dim >::computeBounds ( const IndexTM< Real, dim > &  a_dx,
const CutCellMoments< dim > &  a_ccm 
) [inline]

template<int dim>
void LSProblem< dim >::print ( ostream &  a_out  )  const [inline]

template<int dim>
void LSProblem< dim >::outputMatrix (  )  const [inline]

template<int dim>
void LSProblem< dim >::outputRhs (  )  const [inline]

References LSProblem< dim >::m_rhs, and pout().

Referenced by LSProblem< dim >::print().

template<int dim>
void LSProblem< dim >::outputUnknowns (  )  const [inline]

template<int dim>
void LSProblem< dim >::outputBounds (  )  const [inline]

template<int dim>
const LocPthMoment& LSProblem< dim >::getLocMonomialMapDegreeP (  )  const [inline]

template<int dim>
const PthMomentLoc& LSProblem< dim >::getMonomialLocMapDegreeP (  )  const [inline]

template<int dim>
const PthMomentLoc& LSProblem< dim >::getMonomialLocMapDegreePLess1 (  )  const [inline]

template<int dim>
Real LSProblem< dim >::getUnknown ( int  loc  )  [inline]

template<int dim>
int LSProblem< dim >::getNumberDegP (  )  [inline]

template<int dim>
int LSProblem< dim >::getNumberDegPLess1 (  )  [inline]

template<int dim>
int LSProblem< dim >::numActiveBounds (  )  const [inline]

template<int dim>
void LSProblem< dim >::setRhs ( const Vector< Real > &  a_rhs  )  [inline]

template<int dim>
void LSProblem< dim >::setMatrix (  )  [inline]

template<int dim>
void LSProblem< dim >::momentBounds ( Real a_lobnd,
Real a_hibnd,
const IvDim a_mono,
const IFData< dim > &  a_ifData 
) [inline]

template<int dim>
void LSProblem< dim >::differentiate ( int &  a_coeff,
IvDim a_Dmono,
int &  a_idir,
const IvDim a_mono 
) [inline]

template<int dim>
int LSProblem< dim >::nChooseR ( int  a_n,
int  a_r 
) [inline]

template<int dim>
void LSProblem< dim >::fillMap ( PthMomentLoc a_monoLoc,
LocPthMoment a_locMono,
const int &  a_degree 
) [inline]

template<int dim>
int LSProblem< dim >::numMonomials ( const int &  a_monoDegree  )  [inline]

template<int dim>
int LSProblem< dim >::factorial ( const int &  a_n,
const int &  a_m = 0 
) [inline]

template<int dim>
void LSProblem< dim >::allocArray ( const int &  a_rows,
const int &  a_cols,
Real **&  a_A 
) [inline]

template<int dim>
void LSProblem< dim >::freeArray ( const int &  a_rows,
const int &  a_cols,
Real **&  a_A 
) [inline]


Member Data Documentation

template<int dim>
int LSProblem< dim >::m_order

template<int dim>
int LSProblem< dim >::m_degreeP

template<int dim>
int LSProblem< dim >::m_numActiveBounds

template<int dim>
bool LSProblem< dim >::m_useConstraints

template<int dim>
IndexTM<Real,dim> LSProblem< dim >::m_normal

template<int dim>
PthMomentLoc LSProblem< dim >::m_monoLocP

template<int dim>
LocPthMoment LSProblem< dim >::m_locMonoP

template<int dim>
int LSProblem< dim >::m_numP

template<int dim>
PthMomentLoc LSProblem< dim >::m_monoLocPLess1

template<int dim>
LocPthMoment LSProblem< dim >::m_locMonoPLess1

template<int dim>
int LSProblem< dim >::m_numPLess1

template<int dim>
Real** LSProblem< dim >::m_matrix

template<int dim>
Vector<Real> LSProblem< dim >::m_unknowns

template<int dim>
Vector<Real> LSProblem< dim >::m_rhs

template<int dim>
Vector<Real> LSProblem< dim >::m_lowerBound

template<int dim>
Vector<Real> LSProblem< dim >::m_upperBound


The documentation for this class was generated from the following files:

Generated on Fri Apr 5 04:25:10 2019 for Chombo + EB by  doxygen 1.5.5