Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Data structure storing a sparse 3-tensor C(i,j,k) in a a tree-based format for lexicographically ordered product bases. More...
#include <Stokhos_LTBSparse3Tensor.hpp>
Classes | |
struct | CijkNode |
Node type used in constructing the tree. More... | |
Public Member Functions | |
LTBSparse3Tensor (const bool symm) | |
Constructor. More... | |
~LTBSparse3Tensor () | |
Destructor. More... | |
void | setHeadNode (const Teuchos::RCP< CijkNode > &h) |
Set the head node. More... | |
Teuchos::RCP< const CijkNode > | getHeadNode () const |
Get the head node. More... | |
void | print (std::ostream &os) const |
Print tensor. More... | |
value_type | getValue (ordinal_type i, ordinal_type j, ordinal_type k) const |
Get Cijk value for a given i, j, k indices. More... | |
ordinal_type | num_entries () const |
Return number of non-zero entries. More... | |
ordinal_type | num_leafs () const |
Return number of nodes. More... | |
bool | symmetric () const |
Return if symmetric. More... | |
Protected Attributes | |
Teuchos::RCP< CijkNode > | head |
bool | is_symmetric |
Private Member Functions | |
LTBSparse3Tensor (const LTBSparse3Tensor &) | |
LTBSparse3Tensor & | operator= (const LTBSparse3Tensor &b) |
Related Functions | |
(Note that these are not member functions.) | |
template<typename ordinal_type , typename value_type > | |
std::ostream & | operator<< (std::ostream &os, const LTBSparse3Tensor< ordinal_type, value_type > &Cijk) |
Data structure storing a sparse 3-tensor C(i,j,k) in a a tree-based format for lexicographically ordered product bases.
Definition at line 57 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Constructor.
Definition at line 73 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Destructor.
Definition at line 76 of file Stokhos_LTBSparse3Tensor.hpp.
|
private |
|
inline |
Set the head node.
Definition at line 79 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Get the head node.
Definition at line 82 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Print tensor.
Definition at line 85 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Get Cijk value for a given i, j, k indices.
Definition at line 88 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Return number of non-zero entries.
Definition at line 92 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Return number of nodes.
Definition at line 99 of file Stokhos_LTBSparse3Tensor.hpp.
|
inline |
Return if symmetric.
Definition at line 106 of file Stokhos_LTBSparse3Tensor.hpp.
|
private |
|
related |
Print triple product tensor to output stream
Definition at line 128 of file Stokhos_LTBSparse3Tensor.hpp.
|
protected |
Definition at line 118 of file Stokhos_LTBSparse3Tensor.hpp.
|
protected |
Definition at line 119 of file Stokhos_LTBSparse3Tensor.hpp.