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

Rank 3 tensor (array of matrices) More...

#include <densemat.hpp>

Public Member Functions

 DenseTensor ()
 
 DenseTensor (int i, int j, int k)
 
 DenseTensor (const DenseTensor &other)
 Copy constructor: deep copy. More...
 
int SizeI () const
 
int SizeJ () const
 
int SizeK () const
 
void SetSize (int i, int j, int k)
 
void UseExternalData (double *ext_data, int i, int j, int k)
 
DenseTensoroperator= (double c)
 Sets the tensor elements equal to constant c. More...
 
DenseMatrixoperator() (int k)
 
const DenseMatrixoperator() (int k) const
 
double & operator() (int i, int j, int k)
 
const double & operator() (int i, int j, int k) const
 
double * GetData (int k)
 
double * Data ()
 
void AddMult (const Table &elem_dof, const Vector &x, Vector &y) const
 
void Clear ()
 
long MemoryUsage () const
 
 ~DenseTensor ()
 

Detailed Description

Rank 3 tensor (array of matrices)

Definition at line 638 of file densemat.hpp.

Constructor & Destructor Documentation

mfem::DenseTensor::DenseTensor ( )
inline

Definition at line 647 of file densemat.hpp.

mfem::DenseTensor::DenseTensor ( int  i,
int  j,
int  k 
)
inline

Definition at line 654 of file densemat.hpp.

mfem::DenseTensor::DenseTensor ( const DenseTensor other)
inline

Copy constructor: deep copy.

Definition at line 663 of file densemat.hpp.

mfem::DenseTensor::~DenseTensor ( )
inline

Definition at line 725 of file densemat.hpp.

Member Function Documentation

void mfem::DenseTensor::AddMult ( const Table elem_dof,
const Vector x,
Vector y 
) const

Matrix-vector product from unassembled element matrices, assuming both 'x' and 'y' use the same elem_dof table.

Definition at line 4356 of file densemat.cpp.

void mfem::DenseTensor::Clear ( )
inline

Definition at line 720 of file densemat.hpp.

double* mfem::DenseTensor::Data ( )
inline

Definition at line 714 of file densemat.hpp.

double* mfem::DenseTensor::GetData ( int  k)
inline

Definition at line 712 of file densemat.hpp.

long mfem::DenseTensor::MemoryUsage ( ) const
inline

Definition at line 723 of file densemat.hpp.

DenseMatrix& mfem::DenseTensor::operator() ( int  k)
inline

Definition at line 703 of file densemat.hpp.

const DenseMatrix& mfem::DenseTensor::operator() ( int  k) const
inline

Definition at line 704 of file densemat.hpp.

double& mfem::DenseTensor::operator() ( int  i,
int  j,
int  k 
)
inline

Definition at line 707 of file densemat.hpp.

const double& mfem::DenseTensor::operator() ( int  i,
int  j,
int  k 
) const
inline

Definition at line 709 of file densemat.hpp.

DenseTensor & mfem::DenseTensor::operator= ( double  c)

Sets the tensor elements equal to constant c.

Definition at line 4409 of file densemat.cpp.

void mfem::DenseTensor::SetSize ( int  i,
int  j,
int  k 
)
inline

Definition at line 682 of file densemat.hpp.

int mfem::DenseTensor::SizeI ( ) const
inline

Definition at line 678 of file densemat.hpp.

int mfem::DenseTensor::SizeJ ( ) const
inline

Definition at line 679 of file densemat.hpp.

int mfem::DenseTensor::SizeK ( ) const
inline

Definition at line 680 of file densemat.hpp.

void mfem::DenseTensor::UseExternalData ( double *  ext_data,
int  i,
int  j,
int  k 
)
inline

Definition at line 691 of file densemat.hpp.


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