MFEM v4.7.0
Finite element discretization library
|
Rank 3 tensor (array of matrices) More...
#include <densemat.hpp>
Public Member Functions | |
DenseTensor () | |
DenseTensor (int i, int j, int k) | |
DenseTensor (real_t *d, int i, int j, int k) | |
DenseTensor (int i, int j, int k, MemoryType mt) | |
DenseTensor (const DenseTensor &other) | |
Copy constructor: deep copy. | |
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 (real_t *ext_data, int i, int j, int k) |
DenseTensor & | operator= (real_t c) |
Sets the tensor elements equal to constant c. | |
DenseTensor & | operator= (const DenseTensor &other) |
Copy assignment operator (performs a deep copy) | |
DenseMatrix & | operator() (int k) |
const DenseMatrix & | operator() (int k) const |
real_t & | operator() (int i, int j, int k) |
const real_t & | operator() (int i, int j, int k) const |
real_t * | GetData (int k) |
const real_t * | GetData (int k) const |
real_t * | Data () |
const real_t * | Data () const |
Memory< real_t > & | GetMemory () |
const Memory< real_t > & | GetMemory () const |
void | AddMult (const Table &elem_dof, const Vector &x, Vector &y) const |
void | Clear () |
std::size_t | MemoryUsage () const |
const real_t * | Read (bool on_dev=true) const |
Shortcut for mfem::Read( GetMemory(), TotalSize(), on_dev). | |
const real_t * | HostRead () const |
Shortcut for mfem::Read(GetMemory(), TotalSize(), false). | |
real_t * | Write (bool on_dev=true) |
Shortcut for mfem::Write(GetMemory(), TotalSize(), on_dev). | |
real_t * | HostWrite () |
Shortcut for mfem::Write(GetMemory(), TotalSize(), false). | |
real_t * | ReadWrite (bool on_dev=true) |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), on_dev). | |
real_t * | HostReadWrite () |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), false). | |
void | Swap (DenseTensor &t) |
~DenseTensor () | |
Rank 3 tensor (array of matrices)
Definition at line 1103 of file densemat.hpp.
|
inline |
Definition at line 1111 of file densemat.hpp.
|
inline |
Definition at line 1116 of file densemat.hpp.
|
inline |
Definition at line 1123 of file densemat.hpp.
|
inline |
Definition at line 1130 of file densemat.hpp.
|
inline |
Copy constructor: deep copy.
Definition at line 1138 of file densemat.hpp.
|
inline |
Definition at line 1267 of file densemat.hpp.
Matrix-vector product from unassembled element matrices, assuming both 'x' and 'y' use the same elem_dof table.
Definition at line 4561 of file densemat.cpp.
|
inline |
Definition at line 1231 of file densemat.hpp.
|
inline |
Definition at line 1220 of file densemat.hpp.
|
inline |
Definition at line 1222 of file densemat.hpp.
|
inline |
Definition at line 1208 of file densemat.hpp.
|
inline |
Definition at line 1214 of file densemat.hpp.
Definition at line 1224 of file densemat.hpp.
Definition at line 1225 of file densemat.hpp.
|
inline |
Shortcut for mfem::Read(GetMemory(), TotalSize(), false).
Definition at line 1241 of file densemat.hpp.
|
inline |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), false).
Definition at line 1257 of file densemat.hpp.
|
inline |
Shortcut for mfem::Write(GetMemory(), TotalSize(), false).
Definition at line 1249 of file densemat.hpp.
|
inline |
Definition at line 1234 of file densemat.hpp.
|
inline |
Definition at line 1192 of file densemat.hpp.
|
inline |
Definition at line 1200 of file densemat.hpp.
|
inline |
Definition at line 1178 of file densemat.hpp.
|
inline |
Definition at line 1184 of file densemat.hpp.
DenseTensor & mfem::DenseTensor::operator= | ( | const DenseTensor & | other | ) |
Copy assignment operator (performs a deep copy)
Definition at line 4626 of file densemat.cpp.
DenseTensor & mfem::DenseTensor::operator= | ( | real_t | c | ) |
Sets the tensor elements equal to constant c.
Definition at line 4616 of file densemat.cpp.
|
inline |
Shortcut for mfem::Read( GetMemory(), TotalSize(), on_dev).
Definition at line 1237 of file densemat.hpp.
|
inline |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), on_dev).
Definition at line 1253 of file densemat.hpp.
|
inline |
Definition at line 1155 of file densemat.hpp.
|
inline |
Definition at line 1149 of file densemat.hpp.
|
inline |
Definition at line 1150 of file densemat.hpp.
|
inline |
Definition at line 1151 of file densemat.hpp.
|
inline |
Definition at line 1260 of file densemat.hpp.
|
inline |
Definition at line 1153 of file densemat.hpp.
|
inline |
Definition at line 1164 of file densemat.hpp.
|
inline |
Shortcut for mfem::Write(GetMemory(), TotalSize(), on_dev).
Definition at line 1245 of file densemat.hpp.