24 for (
int i=0; i<
vdim_; i++)
32 for (
int i=0; i<
vdim_; i++)
34 for (
int j=0; j<size; j++)
36 vec(j) = v[j*
vdim_+i];
39 for (
int j=0; j<size; j++)
41 v[j*
vdim_+i] = vec(j);
54 for (
int i=0; i<
vdim_; i++)
62 for (
int i=0; i<
vdim_; i++)
64 for (
int j=0; j<size; j++)
66 vec(j) = v[j*
vdim_+i];
69 for (
int j=0; j<size; j++)
71 v[j*
vdim_+i] = vec(j);
84 for (
int i=0; i<
vdim_; i++)
92 for (
int i=0; i<
vdim_; i++)
94 for (
int j=0; j<size; j++)
96 vec(j) = v[j*
vdim_+i];
99 for (
int j=0; j<size; j++)
101 v[j*
vdim_+i] = vec(j);
114 for (
int i=0; i<
vdim_; i++)
122 for (
int i=0; i<
vdim_; i++)
124 for (
int j=0; j<size; j++)
126 vec(j) = v[j*
vdim_+i];
129 for (
int j=0; j<size; j++)
131 v[j*
vdim_+i] = vec(j);
168const real_t ND_DofTransformation::T_data[24] =
171 -1.0, -1.0, 0.0, 1.0,
172 0.0, 1.0, -1.0, -1.0,
173 1.0, 0.0, -1.0, -1.0,
174 -1.0, -1.0, 1.0, 0.0,
178const DenseTensor ND_DofTransformation
179::T(
const_cast<real_t *
>(ND_DofTransformation::T_data), 2, 2, 6);
182const real_t ND_DofTransformation::TInv_data[24] =
185 -1.0, -1.0, 0.0, 1.0,
186 -1.0, -1.0, 1.0, 0.0,
187 1.0, 0.0, -1.0, -1.0,
188 0.0, 1.0, -1.0, -1.0,
192const DenseTensor ND_DofTransformation
193::TInv(
const_cast<real_t *
>(TInv_data), 2, 2, 6);
216 "Face orientation array is shorter than the number of faces in "
217 "ND_DofTransformation");
229 for (
int i=0; i<
ntdofs/2; i++)
251 "Face orientation array is shorter than the number of faces in "
252 "ND_DofTransformation");
264 for (
int i=0; i<
ntdofs/2; i++)
285 "Face orientation array is shorter than the number of faces in "
286 "ND_DofTransformation");
298 for (
int i=0; i<
ntdofs/2; i++)
321 "Face orientation array is shorter than the number of faces in "
322 "ND_DofTransformation");
334 for (
int i=0; i<
ntdofs/2; i++)
int Size() const
Return the logical size of the array.
Data type dense matrix using column-major storage.
void Mult(const real_t *x, real_t *y) const
Matrix vector multiplication.
void MultTranspose(const real_t *x, real_t *y) const
Multiply a vector with the transpose matrix.
void UseExternalData(real_t *d, int h, int w)
Change the data array and the size of the DenseMatrix.
void TransformDual(const DofTransformation &ran_dof_trans, const DofTransformation &dom_dof_trans, DenseMatrix &elmat)
void TransformPrimal(const DofTransformation &ran_dof_trans, const DofTransformation &dom_dof_trans, DenseMatrix &elmat)
std::function< real_t(const Vector &)> f(real_t mass_coeff)
real_t p(const Vector &x, real_t t)