MFEM  v4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::ScalarMatrixProductCoefficient Class Reference

Matrix coefficient defined as a product of a scalar and a matrix. More...

#include <coefficient.hpp>

Inheritance diagram for mfem::ScalarMatrixProductCoefficient:
[legend]
Collaboration diagram for mfem::ScalarMatrixProductCoefficient:
[legend]

Public Member Functions

 ScalarMatrixProductCoefficient (Coefficient &A, MatrixCoefficient &B)
 
virtual void Eval (DenseMatrix &M, ElementTransformation &T, const IntegrationPoint &ip)
 Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K. More...
 
- Public Member Functions inherited from mfem::MatrixCoefficient
 MatrixCoefficient (int dim)
 
 MatrixCoefficient (int h, int w)
 
void SetTime (double t)
 
double GetTime ()
 
int GetHeight () const
 
int GetWidth () const
 
int GetVDim () const
 
virtual ~MatrixCoefficient ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::MatrixCoefficient
int height
 
int width
 
double time
 

Detailed Description

Matrix coefficient defined as a product of a scalar and a matrix.

Definition at line 892 of file coefficient.hpp.

Constructor & Destructor Documentation

mfem::ScalarMatrixProductCoefficient::ScalarMatrixProductCoefficient ( Coefficient A,
MatrixCoefficient B 
)

Definition at line 520 of file coefficient.cpp.

Member Function Documentation

void mfem::ScalarMatrixProductCoefficient::Eval ( DenseMatrix K,
ElementTransformation T,
const IntegrationPoint ip 
)
virtual

Evaluate the matrix coefficient in the element described by T at the point ip, storing the result in K.

Note
When this method is called, the caller must make sure that the IntegrationPoint associated with T is the same as ip. This can be achieved by calling T.SetIntPoint(&ip).

Implements mfem::MatrixCoefficient.

Definition at line 526 of file coefficient.cpp.


The documentation for this class was generated from the following files: