12 #ifndef MFEM_BILINEARFORM
13 #define MFEM_BILINEARFORM
15 #include "../config/config.hpp"
16 #include "../linalg/linalg.hpp"
148 virtual double &
Elem(
int i,
int j);
151 virtual const double &
Elem(
int i,
int j)
const;
166 const double a = 1.0)
const
182 virtual void Finalize(
int skip_zeros = 1);
187 MFEM_VERIFY(
mat,
"mat is NULL and can't be dereferenced");
192 MFEM_VERIFY(
mat,
"mat is NULL and can't be dereferenced");
200 MFEM_VERIFY(
mat_e,
"mat_e is NULL and can't be dereferenced");
205 MFEM_VERIFY(
mat_e,
"mat_e is NULL and can't be dereferenced");
228 if (
mat != NULL) { *
mat = a; }
266 int copy_interior = 0);
376 virtual double&
Elem (
int i,
int j);
378 virtual const double&
Elem (
int i,
int j)
const;
383 const double a = 1.0)
const;
386 const double a = 1.0)
const;
393 virtual void Finalize (
int skip_zeros = 1);
489 virtual void Assemble(
int skip_zeros = 1);
const SparseMatrix * GetConformingProlongation() const
Data type dense matrix using column-major storage.
void AddMult(const Vector &x, Vector &y, const double a=1.0) const
y += A * x (default) or y += a * A * x
void AddMultTranspose(const Vector &x, Vector &y, const double a=1.0) const
y += At * x (default) or y += a * At * x
Abstract data type for matrix inverse.
void AddDomainInterpolator(DiscreteInterpolator *di)
const SparseMatrix * GetConformingRestriction() const
DiscreteLinearOperator(FiniteElementSpace *domain_fes, FiniteElementSpace *range_fes)
Abstract data type matrix.
virtual void Mult(const Vector &x, Vector &y) const
Matrix vector multiplication.
void AddTraceFaceInterpolator(DiscreteInterpolator *di)
int height
Dimension of the output / number of rows in the matrix.
FiniteElementSpace * GetTraceFESpace()
Return a pointer to the reduced/trace FE space.
virtual void Assemble(int skip_zeros=1)
Rank 3 tensor (array of matrices)
Array< BilinearFormIntegrator * > * GetDI()
double InnerProduct(const Vector &x, const Vector &y) const
Compute y^t A x.