Stokhos Development
Loading...
Searching...
No Matches
Stokhos::LTBSparse3Tensor< ordinal_type, value_type > Class Template Reference

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 CijkNodegetHeadNode () 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< CijkNodehead
bool is_symmetric

(Note that these are not member symbols.)

template<typename ordinal_type, typename value_type>
std::ostream & operator<< (std::ostream &os, const LTBSparse3Tensor< ordinal_type, value_type > &Cijk)

Detailed Description

template<typename ordinal_type, typename value_type>
class Stokhos::LTBSparse3Tensor< ordinal_type, value_type >

Data structure storing a sparse 3-tensor C(i,j,k) in a a tree-based format for lexicographically ordered product bases.

◆ operator<<()

template<typename ordinal_type, typename value_type>
std::ostream & operator<< ( std::ostream & os,
const LTBSparse3Tensor< ordinal_type, value_type > & Cijk )
related

Print triple product tensor to output stream

References LTBSparse3Tensor(), and print().


The documentation for this class was generated from the following file: