![]() |
MFEM v4.10.0
Finite element discretization library
|
Rank 3 tensor (array of matrices) More...
#include <densemat.hpp>
Public Member Functions | |
| DenseTensor () | |
| DenseTensor (const DenseTensor &other) | |
| DenseTensor (DenseTensor &&other) | |
| 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 & | operator= (const DenseTensor &other) |
| DenseTensor & | operator= (DenseTensor &&other) |
| 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) |
| void | NewMemoryAndSize (const Memory< real_t > &mem, int i, int j, int k, bool own_mem) |
| Reset the DenseTensor to use the given external Memory mem and dimensions i, j, and k. | |
| DenseTensor & | operator= (real_t c) |
| Sets the tensor elements equal to constant c. | |
| DenseMatrix & | operator() (int k) |
| const DenseMatrix & | operator() (int k) const |
| DenseMatrix & | operator() (int k, DenseMatrix &buff) |
| const DenseMatrix & | operator() (int k, DenseMatrix &buff) 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) |
Rank 3 tensor (array of matrices)
Definition at line 1130 of file densemat.hpp.
|
inline |
Definition at line 1138 of file densemat.hpp.
|
inline |
Definition at line 1140 of file densemat.hpp.
|
inline |
Definition at line 1143 of file densemat.hpp.
|
inline |
Definition at line 1151 of file densemat.hpp.
|
inline |
Definition at line 1153 of file densemat.hpp.
|
inline |
Definition at line 1156 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 4356 of file densemat.cpp.
|
inline |
Definition at line 1294 of file densemat.hpp.
|
inline |
Definition at line 1283 of file densemat.hpp.
|
inline |
Definition at line 1285 of file densemat.hpp.
|
inline |
Definition at line 1271 of file densemat.hpp.
|
inline |
Definition at line 1277 of file densemat.hpp.
Definition at line 1287 of file densemat.hpp.
Definition at line 1288 of file densemat.hpp.
|
inline |
Shortcut for mfem::Read(GetMemory(), TotalSize(), false).
Definition at line 1303 of file densemat.hpp.
|
inline |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), false).
Definition at line 1315 of file densemat.hpp.
|
inline |
Shortcut for mfem::Write(GetMemory(), TotalSize(), false).
Definition at line 1309 of file densemat.hpp.
|
inline |
Definition at line 1297 of file densemat.hpp.
|
inline |
Reset the DenseTensor to use the given external Memory mem and dimensions i, j, and k.
If own_mem is false, the DenseTensor will not own any of the pointers of mem.
Note that when own_mem is true, the mem object can be destroyed immediately by the caller but mem.Delete() should NOT be called since the DenseTensor object takes ownership of all pointers owned by mem.
Definition at line 1221 of file densemat.hpp.
|
inline |
Definition at line 1255 of file densemat.hpp.
|
inline |
Definition at line 1263 of file densemat.hpp.
|
inline |
Definition at line 1234 of file densemat.hpp.
|
inline |
Definition at line 1238 of file densemat.hpp.
|
inline |
Definition at line 1242 of file densemat.hpp.
|
inline |
Definition at line 1248 of file densemat.hpp.
|
inline |
Definition at line 1159 of file densemat.hpp.
|
inline |
Definition at line 1170 of file densemat.hpp.
| DenseTensor & mfem::DenseTensor::operator= | ( | real_t | c | ) |
Sets the tensor elements equal to constant c.
Definition at line 4411 of file densemat.cpp.
|
inline |
Shortcut for mfem::Read( GetMemory(), TotalSize(), on_dev).
Definition at line 1300 of file densemat.hpp.
|
inline |
Shortcut for mfem::ReadWrite(GetMemory(), TotalSize(), on_dev).
Definition at line 1312 of file densemat.hpp.
|
inline |
Definition at line 1192 of file densemat.hpp.
|
inline |
Definition at line 1186 of file densemat.hpp.
|
inline |
Definition at line 1187 of file densemat.hpp.
|
inline |
Definition at line 1188 of file densemat.hpp.
|
inline |
Definition at line 1317 of file densemat.hpp.
|
inline |
Definition at line 1190 of file densemat.hpp.
|
inline |
Definition at line 1203 of file densemat.hpp.
|
inline |
Shortcut for mfem::Write(GetMemory(), TotalSize(), on_dev).
Definition at line 1306 of file densemat.hpp.