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)
void 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 computeBounds (const IndexTM< Real, dim > &a_dx, const CutCellMoments< dim > &a_ccm)
void print (ostream &out) const
void outputMatrix () const
void outputRhs () const
void outputUnknowns () const
const LocPthMoment & getLocMonomialMapDegreeP () const
const PthMomentLoc & getMonomialLocMapDegreeP () const
const PthMomentLoc & getMonomialLocMapDegreePLess1 () const
Real getUnknown (int loc)
int getNumberDegP ()
int getNumberDegPLess1 ()

Private Types

typedef IndexTM< int, dim > IvDim
typedef map< IvDim, int, LexLT
< IvDim > > 
PthMomentLoc
typedef map< int, IvDim > LocPthMoment

Private Member Functions

void setRhs (const Vector< Real > &a_rhs)
void setMatrix ()
void momentBounds (Real &lobnd, Real &hibnd, const IvDim &mono, const IndexTM< Real, dim > &a_dx)
void differentiate (int &a_coeff, IvDim &a_Dmono, int &a_idir, const IvDim &a_mono)
int nChooseR (int n, int r)
void fillMap (PthMomentLoc &m_monoLoc, LocPthMoment &m_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 &rows, const int &cols, Real **&A)
void freeArray (const int &rows, const int &cols, Real **&A)

Private Attributes

int m_order
int m_degreeP
bool m_useConstraints
IndexTM< Real, dim > m_normal
PthMomentLoc m_monoLocP
LocPthMoment m_locMonoP
int m_numP
PthMomentLoc m_monoLocPLess1
LocPthMoment m_locMonoPLess1
int m_numPLess1
Real ** m_matrix
Vector< Real > m_unknowns
Vector< Real > m_rhs
Real * m_constraintVec
Real ** m_constraintMat
int m_nInequality

Member Typedef Documentation

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

template<int dim>
typedef map<IvDim,int,LexLT <IvDim> > 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>
void 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 >::computeBounds ( const IndexTM< Real, dim > &  a_dx,
const CutCellMoments< dim > &  a_ccm 
) [inline]

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

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

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

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

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

template<int dim>
void LSProblem< dim >::outputUnknowns (  )  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>
void LSProblem< dim >::setRhs ( const Vector< Real > &  a_rhs  )  [inline, private]

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

template<int dim>
void LSProblem< dim >::momentBounds ( Real &  lobnd,
Real &  hibnd,
const IvDim &  mono,
const IndexTM< Real, dim > &  a_dx 
) [inline, private]

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

template<int dim>
int LSProblem< dim >::nChooseR ( int  n,
int  r 
) [inline, private]

References i.

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

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

References dim, j, and k.

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

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

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

References MayDay::Abort(), and i.

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

template<int dim>
void LSProblem< dim >::allocArray ( const int &  rows,
const int &  cols,
Real **&  A 
) [inline, private]

template<int dim>
void LSProblem< dim >::freeArray ( const int &  rows,
const int &  cols,
Real **&  A 
) [inline, private]

References i.

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


Member Data Documentation

template<int dim>
int LSProblem< dim >::m_order [private]

template<int dim>
int LSProblem< dim >::m_degreeP [private]

template<int dim>
bool LSProblem< dim >::m_useConstraints [private]

template<int dim>
IndexTM<Real,dim> LSProblem< dim >::m_normal [private]

template<int dim>
PthMomentLoc LSProblem< dim >::m_monoLocP [private]

template<int dim>
LocPthMoment LSProblem< dim >::m_locMonoP [private]

template<int dim>
int LSProblem< dim >::m_numP [private]

template<int dim>
PthMomentLoc LSProblem< dim >::m_monoLocPLess1 [private]

template<int dim>
LocPthMoment LSProblem< dim >::m_locMonoPLess1 [private]

template<int dim>
int LSProblem< dim >::m_numPLess1 [private]

template<int dim>
Real** LSProblem< dim >::m_matrix [private]

template<int dim>
Vector<Real> LSProblem< dim >::m_unknowns [private]

template<int dim>
Vector<Real> LSProblem< dim >::m_rhs [private]

template<int dim>
Real* LSProblem< dim >::m_constraintVec [private]

template<int dim>
Real** LSProblem< dim >::m_constraintMat [private]

template<int dim>
int LSProblem< dim >::m_nInequality [private]


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

Generated on Tue Apr 14 14:23:43 2009 for Chombo + EB by  doxygen 1.5.5