Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Stokhos::BasisInteractionGraph Class Reference

#include <Stokhos_BasisInteractionGraph.hpp>

Public Member Functions

 BasisInteractionGraph ()
 
 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. More...
 
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. More...
 
const std::vector< std::size_t > & activeIndices (std::size_t i) const
 Grab active indicies in graph for row i. More...
 
bool operator() (std::size_t i, std::size_t j) const
 Is there an entry for (i,j) in the graph. More...
 
std::size_t numNonZeros () const
 How many non zeros are in this graph. More...
 
std::size_t rowCount () const
 What is the number of rows. More...
 
std::size_t colCount () const
 What is the number of columns. More...
 
void printGraph (std::ostream &os) const
 

Protected Attributes

std::size_t numCols_
 
std::vector< std::vector
< std::size_t > > 
vecLookup_
 
bool onlyUseLinear_
 

Detailed Description

Definition at line 21 of file Stokhos_BasisInteractionGraph.hpp.

Constructor & Destructor Documentation

Stokhos::BasisInteractionGraph::BasisInteractionGraph ( )

Definition at line 12 of file Stokhos_BasisInteractionGraph.cpp.

Stokhos::BasisInteractionGraph::BasisInteractionGraph ( const BasisInteractionGraph flm)

Definition at line 15 of file Stokhos_BasisInteractionGraph.cpp.

Stokhos::BasisInteractionGraph::BasisInteractionGraph ( const Stokhos::OrthogPolyBasis< int, double > &  max_basis,
bool  onlyUseLinear = false,
int  porder = -1 
)

Definition at line 19 of file Stokhos_BasisInteractionGraph.cpp.

Stokhos::BasisInteractionGraph::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 
)

Definition at line 32 of file Stokhos_BasisInteractionGraph.cpp.

Stokhos::BasisInteractionGraph::BasisInteractionGraph ( const Stokhos::OrthogPolyBasis< int, double > &  max_basis,
const Stokhos::Sparse3Tensor< int, double > &  Cijk,
bool  onlyUseLinear = false,
int  porder = -1 
)

Definition at line 47 of file Stokhos_BasisInteractionGraph.cpp.

Stokhos::BasisInteractionGraph::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 
)

Definition at line 55 of file Stokhos_BasisInteractionGraph.cpp.

Member Function Documentation

void Stokhos::BasisInteractionGraph::initialize ( const Stokhos::OrthogPolyBasis< int, double > &  max_basis,
const Stokhos::Sparse3Tensor< int, double > &  Cijk,
int  porder = -1 
)

Setup the lookup graph.

Definition at line 66 of file Stokhos_BasisInteractionGraph.cpp.

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.

Definition at line 101 of file Stokhos_BasisInteractionGraph.cpp.

const std::vector<std::size_t>& Stokhos::BasisInteractionGraph::activeIndices ( std::size_t  i) const
inline

Grab active indicies in graph for row i.

Definition at line 51 of file Stokhos_BasisInteractionGraph.hpp.

bool Stokhos::BasisInteractionGraph::operator() ( std::size_t  i,
std::size_t  j 
) const

Is there an entry for (i,j) in the graph.

Definition at line 140 of file Stokhos_BasisInteractionGraph.cpp.

std::size_t Stokhos::BasisInteractionGraph::numNonZeros ( ) const

How many non zeros are in this graph.

Definition at line 156 of file Stokhos_BasisInteractionGraph.cpp.

std::size_t Stokhos::BasisInteractionGraph::rowCount ( ) const
inline

What is the number of rows.

Definition at line 61 of file Stokhos_BasisInteractionGraph.hpp.

std::size_t Stokhos::BasisInteractionGraph::colCount ( ) const
inline

What is the number of columns.

Definition at line 65 of file Stokhos_BasisInteractionGraph.hpp.

void Stokhos::BasisInteractionGraph::printGraph ( std::ostream &  os) const

Definition at line 146 of file Stokhos_BasisInteractionGraph.cpp.

Member Data Documentation

std::size_t Stokhos::BasisInteractionGraph::numCols_
protected

Definition at line 71 of file Stokhos_BasisInteractionGraph.hpp.

std::vector<std::vector<std::size_t> > Stokhos::BasisInteractionGraph::vecLookup_
protected

Definition at line 73 of file Stokhos_BasisInteractionGraph.hpp.

bool Stokhos::BasisInteractionGraph::onlyUseLinear_
protected

Definition at line 75 of file Stokhos_BasisInteractionGraph.hpp.


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