57 if (fpoints0 == tpoints0)
83 if (fpoints0 == tpoints0)
95 I0->GetPtr().get(), tpoints0.
GetNumPoints(), from, 1, 0.0,
114 Interp2D(fpoints0, fpoints1, from.data(), tpoints0, tpoints1, to.data());
122 if ((fpoints0 == tpoints0) && (fpoints1 == tpoints1))
138 if (fpoints1 == tpoints1)
145 Blas::Dgemm(
'N',
'T', fnp0, tnp1, fnp1, 1.0, from, fnp0,
146 I1->GetPtr().get(), tnp1, 0.0, wsp.get(), fnp0);
149 if (fpoints0 == tpoints0)
156 Blas::Dgemm(
'N',
'N', tnp0, tnp1, fnp0, 1.0, I0->GetPtr().get(), tnp0,
157 wsp.get(), fnp0, 0.0, to, tnp0);
178 Interp3D(fpoints0, fpoints1, fpoints2, from.data(), tpoints0, tpoints1,
179 tpoints2, to.data());
204 Blas::Dgemm(
'N',
'N', tnp0, fnp1 * fnp2, fnp0, 1.0, I0->GetPtr().get(),
205 tnp0, from, fnp0, 0.0, wsp2.get(), tnp0);
207 for (i = 0; i < fnp2; i++)
210 wsp2.get() + i * tnp0 * fnp1, tnp0, I1->GetPtr().get(),
211 tnp1, 0.0, wsp1.get() + i * tnp0 * tnp1, tnp0);
214 Blas::Dgemm(
'N',
'T', tnp0 * tnp1, tnp2, fnp2, 1.0, wsp1.get(), tnp0 * tnp1,
215 I2->GetPtr().get(), tnp2, 0.0, to, tnp0 * tnp1);
Describes the specification for a Basis.
PointsKey GetPointsKey() const
Return distribution of points.
Defines a specification for a set of points.
size_t GetNumPoints() const
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 = alpha A x plus beta y where A[m x n].
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 op(A)[m x k], op(B)[k x n], C[m x n] DGEMM perfo...
void Interp1D(const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
this function interpolates a 1D function evaluated at the quadrature points of the basis fbasis0 to ...
PointsManagerT & PointsManager(void)
void Interp3D(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)
this function interpolates a 3D function evaluated at the quadrature points of the 3D basis,...
void Interp2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
this function interpolates a 2D function evaluated at the quadrature points of the 2D basis,...
std::shared_ptr< DNekMat > DNekMatSharedPtr
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)