Stokhos  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Public Member Functions | Protected Attributes | Related Functions | List of all members
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
 

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)
 

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.

Friends And Related Function Documentation

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 Stokhos::LTBSparse3Tensor< ordinal_type, value_type >::print().


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