45 namespace LibUtilities
65 if(fpoints0 == tpoints0)
73 GP0 =
PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
96 if(fpoints0 == tpoints0)
106 ->GetGalerkinProjection(fpoints0);
110 from, 1, 0.0, to, 1);
151 if(fpoints1 == tpoints1)
157 GP1 =
PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
158 Blas::Dgemm(
'N',
'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
159 GP1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
162 if(fpoints0 == tpoints0)
168 GP0 =
PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
171 tnp0, wsp.get(), fnp0, 0.0, to, tnp0);
206 tpoints0,tpoints1,tpoints2,to.data());
230 GP2 =
PointsManager()[tpoints2]->GetGalerkinProjection(fpoints2);
231 Blas::Dgemm(
'N',
'T', fnp0*fnp1, tnp2, fnp2, 1.0, from, fnp0*fnp1,
232 GP2->GetPtr().get(), tnp2, 0.0, wsp2.get(), fnp0*fnp1);
234 GP1 =
PointsManager()[tpoints1]->GetGalerkinProjection(fpoints1);
235 for(
int i = 0; i < tnp2; i++)
238 wsp2.get()+i*fnp0*fnp1,
239 fnp0, GP1->GetPtr().get(),tnp1, 0.0,
240 wsp1.get()+i*fnp0*tnp1,
244 GP0 =
PointsManager()[tpoints0]->GetGalerkinProjection(fpoints0);
246 GP0->GetPtr().get(), tnp0, wsp1.get(), fnp0, 0.0,
void PhysGalerkinProject1D(const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
std::shared_ptr< DNekMat > DNekMatSharedPtr
static void Dgemm(const char &transa, const char &transb, const int &m, const int &n, const int &k, const double &alpha, const double *a, const int &lda, const double *b, const int &ldb, const double &beta, double *c, const int &ldc)
BLAS level 3: Matrix-matrix multiply C = A x B where A[m x n], B[n x k], C[m x k].
PointsKey GetPointsKey() const
Return distribution of points.
PointsManagerT & PointsManager(void)
void PhysGalerkinProject3D(const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
Defines a specification for a set of points.
static void Dgemv(const char &trans, const int &m, const int &n, const double &alpha, const double *a, const int &lda, const double *x, const int &incx, const double &beta, double *y, const int &incy)
BLAS level 2: Matrix vector multiply y = A x where A[m x n].
unsigned int GetNumPoints() const
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Describes the specification for a Basis.
void PhysGalerkinProject2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)