Rank 3 tensor (array of matrices)
More...
#include <densemat.hpp>
|
| DenseTensor () |
|
| DenseTensor (int i, int j, int k) |
|
| DenseTensor (double *d, int i, int j, int k) |
|
| DenseTensor (int i, int j, int k, MemoryType mt) |
|
| DenseTensor (const DenseTensor &other) |
| Copy constructor: deep copy. More...
|
|
int | SizeI () const |
|
int | SizeJ () const |
|
int | SizeK () const |
|
int | TotalSize () const |
|
void | SetSize (int i, int j, int k, MemoryType mt_=MemoryType::PRESERVE) |
|
void | UseExternalData (double *ext_data, int i, int j, int k) |
|
DenseTensor & | operator= (double c) |
| Sets the tensor elements equal to constant c. More...
|
|
DenseTensor & | operator= (const DenseTensor &other) |
| Copy assignment operator (performs a deep copy) More...
|
|
DenseMatrix & | operator() (int k) |
|
const DenseMatrix & | operator() (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) |
|
const double * | GetData (int k) const |
|
double * | Data () |
|
const double * | Data () const |
|
Memory< double > & | GetMemory () |
|
const Memory< double > & | GetMemory () const |
|
void | AddMult (const Table &elem_dof, const Vector &x, Vector &y) const |
|
void | Clear () |
|
std::size_t | MemoryUsage () const |
|
const double * | Read (bool on_dev=true) const |
| Shortcut for mfem::Read( GetMemory(), TotalSize(), on_dev). More...
|
|
const double * | HostRead () const |
| Shortcut for mfem::Read(GetMemory(), TotalSize(), false). More...
|
|
double * | Write (bool on_dev=true) |
| Shortcut for mfem::Write(GetMemory(), TotalSize(), on_dev). More...
|
|
double * | HostWrite () |
| Shortcut for mfem::Write(GetMemory(), TotalSize(), false). More...
|
|
double * | ReadWrite (bool on_dev=true) |
| Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), on_dev). More...
|
|
double * | HostReadWrite () |
| Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), false). More...
|
|
void | Swap (DenseTensor &t) |
|
| ~DenseTensor () |
|
Rank 3 tensor (array of matrices)
Definition at line 1096 of file densemat.hpp.
◆ DenseTensor() [1/5]
mfem::DenseTensor::DenseTensor |
( |
| ) |
|
|
inline |
◆ DenseTensor() [2/5]
mfem::DenseTensor::DenseTensor |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
inline |
◆ DenseTensor() [3/5]
mfem::DenseTensor::DenseTensor |
( |
double * |
d, |
|
|
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
inline |
◆ DenseTensor() [4/5]
mfem::DenseTensor::DenseTensor |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k, |
|
|
MemoryType |
mt |
|
) |
| |
|
inline |
◆ DenseTensor() [5/5]
mfem::DenseTensor::DenseTensor |
( |
const DenseTensor & |
other | ) |
|
|
inline |
◆ ~DenseTensor()
mfem::DenseTensor::~DenseTensor |
( |
| ) |
|
|
inline |
◆ AddMult()
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 4239 of file densemat.cpp.
◆ Clear()
void mfem::DenseTensor::Clear |
( |
| ) |
|
|
inline |
◆ Data() [1/2]
double* mfem::DenseTensor::Data |
( |
| ) |
|
|
inline |
◆ Data() [2/2]
const double* mfem::DenseTensor::Data |
( |
| ) |
const |
|
inline |
◆ GetData() [1/2]
double* mfem::DenseTensor::GetData |
( |
int |
k | ) |
|
|
inline |
◆ GetData() [2/2]
const double* mfem::DenseTensor::GetData |
( |
int |
k | ) |
const |
|
inline |
◆ GetMemory() [1/2]
Memory<double>& mfem::DenseTensor::GetMemory |
( |
| ) |
|
|
inline |
◆ GetMemory() [2/2]
const Memory<double>& mfem::DenseTensor::GetMemory |
( |
| ) |
const |
|
inline |
◆ HostRead()
const double* mfem::DenseTensor::HostRead |
( |
| ) |
const |
|
inline |
◆ HostReadWrite()
double* mfem::DenseTensor::HostReadWrite |
( |
| ) |
|
|
inline |
◆ HostWrite()
double* mfem::DenseTensor::HostWrite |
( |
| ) |
|
|
inline |
◆ MemoryUsage()
std::size_t mfem::DenseTensor::MemoryUsage |
( |
| ) |
const |
|
inline |
◆ operator()() [1/4]
◆ operator()() [2/4]
const DenseMatrix& mfem::DenseTensor::operator() |
( |
int |
k | ) |
const |
|
inline |
◆ operator()() [3/4]
double& mfem::DenseTensor::operator() |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
inline |
◆ operator()() [4/4]
const double& mfem::DenseTensor::operator() |
( |
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| const |
|
inline |
◆ operator=() [1/2]
Sets the tensor elements equal to constant c.
Definition at line 4294 of file densemat.cpp.
◆ operator=() [2/2]
Copy assignment operator (performs a deep copy)
Definition at line 4304 of file densemat.cpp.
◆ Read()
const double* mfem::DenseTensor::Read |
( |
bool |
on_dev = true | ) |
const |
|
inline |
◆ ReadWrite()
double* mfem::DenseTensor::ReadWrite |
( |
bool |
on_dev = true | ) |
|
|
inline |
◆ SetSize()
◆ SizeI()
int mfem::DenseTensor::SizeI |
( |
| ) |
const |
|
inline |
◆ SizeJ()
int mfem::DenseTensor::SizeJ |
( |
| ) |
const |
|
inline |
◆ SizeK()
int mfem::DenseTensor::SizeK |
( |
| ) |
const |
|
inline |
◆ Swap()
◆ TotalSize()
int mfem::DenseTensor::TotalSize |
( |
| ) |
const |
|
inline |
◆ UseExternalData()
void mfem::DenseTensor::UseExternalData |
( |
double * |
ext_data, |
|
|
int |
i, |
|
|
int |
j, |
|
|
int |
k |
|
) |
| |
|
inline |
◆ Write()
double* mfem::DenseTensor::Write |
( |
bool |
on_dev = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: