Stokhos
Development
|
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. | |
~LTBSparse3Tensor () | |
Destructor. | |
void | setHeadNode (const Teuchos::RCP< CijkNode > &h) |
Set the head node. | |
Teuchos::RCP< const CijkNode > | getHeadNode () const |
Get the head node. | |
void | print (std::ostream &os) const |
Print tensor. | |
value_type | getValue (ordinal_type i, ordinal_type j, ordinal_type k) const |
Get Cijk value for a given i, j, k indices. | |
ordinal_type | num_entries () const |
Return number of non-zero entries. | |
ordinal_type | num_leafs () const |
Return number of nodes. | |
bool | symmetric () const |
Return if symmetric. | |
Protected Attributes | |
Teuchos::RCP< CijkNode > | head |
bool | is_symmetric |
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.
|
related |
Print triple product tensor to output stream
References Stokhos::LTBSparse3Tensor< ordinal_type, value_type >::print().