|
Stokhos Development
|
Public Member Functions | |
| BasisInteractionGraph (const BasisInteractionGraph &flm) | |
| BasisInteractionGraph (const Stokhos::OrthogPolyBasis< int, double > &max_basis, bool onlyUseLinear=false, int porder=-1) | |
| BasisInteractionGraph (const Stokhos::ProductBasis< int, double > &masterBasis, const Stokhos::ProductBasis< int, double > &rowBasis, const Stokhos::ProductBasis< int, double > &colBasis, bool onlyUseLinear=false, int porder=-1) | |
| BasisInteractionGraph (const Stokhos::OrthogPolyBasis< int, double > &max_basis, const Stokhos::Sparse3Tensor< int, double > &Cijk, bool onlyUseLinear=false, int porder=-1) | |
| BasisInteractionGraph (const Stokhos::ProductBasis< int, double > &masterBasis, const Stokhos::Sparse3Tensor< int, double > &Cijk, const Stokhos::ProductBasis< int, double > &rowBasis, const Stokhos::ProductBasis< int, double > &colBasis, bool onlyUseLinear=false, int porder=-1) | |
| void | initialize (const Stokhos::OrthogPolyBasis< int, double > &max_basis, const Stokhos::Sparse3Tensor< int, double > &Cijk, int porder=-1) |
| Setup the lookup graph. | |
| void | initialize (const Stokhos::ProductBasis< int, double > &max_basis, const Stokhos::Sparse3Tensor< int, double > &Cijk, const Stokhos::ProductBasis< int, double > &rowBasis, const Stokhos::ProductBasis< int, double > &colBasis, int porder=-1) |
| Setup the lookup graph. | |
| const std::vector< std::size_t > & | activeIndices (std::size_t i) const |
| Grab active indicies in graph for row i. | |
| bool | operator() (std::size_t i, std::size_t j) const |
| Is there an entry for (i,j) in the graph. | |
| std::size_t | numNonZeros () const |
| How many non zeros are in this graph. | |
| std::size_t | rowCount () const |
| What is the number of rows. | |
| std::size_t | colCount () const |
| What is the number of columns. | |
| void | printGraph (std::ostream &os) const |
Protected Attributes | |
| std::size_t | numCols_ |
| std::vector< std::vector< std::size_t > > | vecLookup_ |
| bool | onlyUseLinear_ |
|
inline |
Grab active indicies in graph for row i.
Referenced by numNonZeros(), and operator()().
| void Stokhos::BasisInteractionGraph::initialize | ( | const Stokhos::OrthogPolyBasis< int, double > & | max_basis, |
| const Stokhos::Sparse3Tensor< int, double > & | Cijk, | ||
| int | porder = -1 ) |
Setup the lookup graph.
References Stokhos::OrthogPolyBasis< ordinal_type, value_type >::dimension(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::find_k(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::i_begin(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::i_end(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::j_begin(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::j_end(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::k_begin(), Stokhos::Sparse3Tensor< ordinal_type, value_type >::k_end(), and Stokhos::OrthogPolyBasis< ordinal_type, value_type >::size().
| void Stokhos::BasisInteractionGraph::initialize | ( | const Stokhos::ProductBasis< int, double > & | max_basis, |
| const Stokhos::Sparse3Tensor< int, double > & | Cijk, | ||
| const Stokhos::ProductBasis< int, double > & | rowBasis, | ||
| const Stokhos::ProductBasis< int, double > & | colBasis, | ||
| int | porder = -1 ) |
Setup the lookup graph.
References Stokhos::ProductBasis< ordinal_type, value_type >::index(), Stokhos::OrthogPolyBasis< ordinal_type, value_type >::size(), and Stokhos::ProductBasis< ordinal_type, value_type >::term().
| std::size_t Stokhos::BasisInteractionGraph::numNonZeros | ( | ) | const |
How many non zeros are in this graph.
References activeIndices(), and rowCount().
| bool Stokhos::BasisInteractionGraph::operator() | ( | std::size_t | i, |
| std::size_t | j ) const |
Is there an entry for (i,j) in the graph.
References activeIndices().
|
inline |
What is the number of rows.
Referenced by numNonZeros().