Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Nektar::Collections::BwdTrans_StdMat Class Reference

Backward transform operator using standard matrix approach. More...

Inheritance diagram for Nektar::Collections::BwdTrans_StdMat:
Inheritance graph
[legend]
Collaboration diagram for Nektar::Collections::BwdTrans_StdMat:
Collaboration graph
[legend]

Public Member Functions

virtual ~BwdTrans_StdMat ()
 
virtual void operator() (const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2, Array< OneD, NekDouble > &wsp)
 Perform operation. More...
 
virtual void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp)
 
- Public Member Functions inherited from Nektar::Collections::Operator
 Operator (std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, boost::shared_ptr< CoalescedGeomData > GeomData)
 Constructor. More...
 
virtual COLLECTIONS_EXPORT ~Operator ()
 
int GetWspSize ()
 Get the size of the required workspace. More...
 

Protected Attributes

DNekMatSharedPtr m_mat
 
- Protected Attributes inherited from Nektar::Collections::Operator
StdRegions::StdExpansionSharedPtr m_stdExp
 
unsigned int m_numElmt
 
unsigned int m_wspSize
 

Private Member Functions

 BwdTrans_StdMat (vector< StdRegions::StdExpansionSharedPtr > pCollExp, CoalescedGeomDataSharedPtr pGeomData)
 

Detailed Description

Backward transform operator using standard matrix approach.

Definition at line 56 of file BwdTrans.cpp.

Constructor & Destructor Documentation

virtual Nektar::Collections::BwdTrans_StdMat::~BwdTrans_StdMat ( )
inlinevirtual

Definition at line 61 of file BwdTrans.cpp.

62  {
63  }
Nektar::Collections::BwdTrans_StdMat::BwdTrans_StdMat ( vector< StdRegions::StdExpansionSharedPtr pCollExp,
CoalescedGeomDataSharedPtr  pGeomData 
)
inlineprivate

Definition at line 91 of file BwdTrans.cpp.

References Nektar::StdRegions::eBwdTrans.

94  : Operator(pCollExp, pGeomData)
95  {
96  StdRegions::StdMatrixKey key(StdRegions::eBwdTrans,
97  m_stdExp->DetShapeType(), *m_stdExp);
98  m_mat = m_stdExp->GetStdMatrix(key);
99  }
Operator(std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, boost::shared_ptr< CoalescedGeomData > GeomData)
Constructor.
Definition: Operator.h:112
StdRegions::StdExpansionSharedPtr m_stdExp
Definition: Operator.h:146

Member Function Documentation

virtual void Nektar::Collections::BwdTrans_StdMat::operator() ( const Array< OneD, const NekDouble > &  input,
Array< OneD, NekDouble > &  output0,
Array< OneD, NekDouble > &  output1,
Array< OneD, NekDouble > &  output2,
Array< OneD, NekDouble > &  wsp 
)
inlinevirtual

Perform operation.

Implements Nektar::Collections::Operator.

Definition at line 65 of file BwdTrans.cpp.

71  {
72  Blas::Dgemm('N', 'N', m_mat->GetRows(), m_numElmt,
73  m_mat->GetColumns(), 1.0, m_mat->GetRawPtr(),
74  m_mat->GetRows(), input.get(), m_stdExp->GetNcoeffs(),
75  0.0, output.get(), m_stdExp->GetTotPoints());
76  }
StdRegions::StdExpansionSharedPtr m_stdExp
Definition: Operator.h:146
virtual void Nektar::Collections::BwdTrans_StdMat::operator() ( int  dir,
const Array< OneD, const NekDouble > &  input,
Array< OneD, NekDouble > &  output,
Array< OneD, NekDouble > &  wsp 
)
inlinevirtual

Implements Nektar::Collections::Operator.

Definition at line 78 of file BwdTrans.cpp.

References ASSERTL0.

83  {
84  ASSERTL0(false, "Not valid for this operator.");
85  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:198

Member Data Documentation

DNekMatSharedPtr Nektar::Collections::BwdTrans_StdMat::m_mat
protected

Definition at line 88 of file BwdTrans.cpp.