Go to the documentation of this file.
46 virtual std::ostream&
info(std::ostream& os)
const;
48 inline Real&
A_(
const uint i,
const uint j) {
51 return this->
data_[i * this->n_ + j];
64 em(0,0) = em(1,1) = factor;
65 em(1,0) = em(0,1) = -factor;
67 em(j,j) = (*this)(j,j)*factor;
96 virtual std::ostream&
info(std::ostream& os)
const;
98 inline Real&
M(
const uint i,
const uint j)
102 return this->
data_[i * this->n_ + j];
115 em(0,0) = em(1,1) = (*this)(0,0)*factor;
116 em(1,0) = em(0,1) = (*this)(1,0)*factor;
119 em(0,2) = em(1,2) = em(2,1) = em(2,0) = (*this)(0,2)*factor;
120 em(2,2) = (*this)(2,2)*factor;
122 em(2,1) = em(2,0) = (*this)(2,0)*factor;
125 em(0,2) = em(1,2) = (*this)(0,2)*factor;
128 em(3,0) = (*this)(3,0)*factor;
130 em(0,3) = (*this)(0,3)*factor;
133 em(j,j) = (*this)(j,j) *factor;
135 em(j-2,j) = (*this)(j-2,j)*factor;
137 em(j,j-2) = (*this)(j,j-2)*factor;
166 virtual std::ostream&
info(std::ostream& os)
const;
168 inline Real&
C(
const uint i,
const uint j) {
171 return this->
data_[i * this->n_ + j];
184 em(0,0) = em(0,1) = (*this)(0,0)*factor;
185 em(1,0) = em(1,1) = (*this)(1,0)*factor;
187 em(0,2) = (*this)(0,2)*factor;
189 em(2,0) = -(*this)(0,2)*factor;
191 em(j-1,j) = (*this)(j-1,j)*factor;
193 em(j,j-1) = -(*this)(j-1,j)*factor;
205 #endif // matrices1D_hh
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
static MassElementMatrix massElemMatrix
Real & M(const uint i, const uint j)
void resize(uint m)
Sets a new size and recomputes the missing entries.
concepts::ElementMatrix< F > extract(uint m, uint n, const F factor) const
Returns the part of the first m rows and n columns multiplied by factor.
Real & C(const uint i, const uint j)
Element stiffness matrix for hp 1D FEM with Karniadakis basis on the reference intervall.
ElementMatrixBase()
Constructor.
static AdvectionElementMatrix advElemMatrix
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
void resize(uint m)
Sets a new size and recomputes the missing entries.
Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall.
concepts::ElementMatrix< F > extract(uint m, uint n, const F factor) const
Returns the part of the first m rows and n columns multiplied by factor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Base class for element matrices.
Exception class for assertions.
void resize(uint m)
Sets a new size and recomputes the missing entries.
F min(const concepts::Array< F > &a)
Returns the minimal value in array a.
Real & A_(const uint i, const uint j)
uint n_
Number of columns.
StiffElementMatrix(const uint m=0)
Constructor.
void zeros()
Fills the matrix with zeros.
uint n() const
Returns the number of columns.
MassElementMatrix(const uint m=0)
Constructor.
Element mass matrix for hp 1D FEM with Karniadakis basis on the reference intervall.
Class providing an output operator.
static StiffElementMatrix stiffElemMatrix
Declaration of static element matrices.
double Real
Type normally used for a floating point number.
Basic namespace for Concepts-2.
concepts::ElementMatrix< F > extract(uint m, uint n, const F factor) const
Returns the part of the first m rows and n columns multiplied by factor.
AdvectionElementMatrix(const uint m=0)
Constructor.
uint m() const
Returns the number of rows.