#include <CartesianProduct.h>
Public Member Functions | |
| WeightedCartesianProduct (const std::vector< std::vector< T > > &items, const std::vector< std::vector< W > > &weights) | |
| std::vector< W > | computeWeightVector () const |
| Compute complete vector of weights. | |
| W | computeWeight (std::size_t row) const |
| Compute specific weight value, given row. | |
| std::vector< std::vector< T > > | computeMatrix () const |
| Compute the complete Cartesian product matrix. | |
| std::vector< T > | computeRow (std::size_t row) const |
| Compute specified row of Cartesian product matrix. | |
| T | computeValue (std::size_t row, std::size_t col) const |
| Compute specific value, given row and column, of the Cartesian product matrix. | |
| std::size_t | numRows () const |
| Total number of rows in the complete matrix. | |
| std::size_t | numCols () const |
| Total number of columns in the complete matrix. | |
Protected Attributes | |
| const std::size_t | _n_rows |
| Number of rows/columns. | |
| const std::size_t | _n_cols |
Static Private Member Functions | |
| static std::size_t | computeRowCount (const std::vector< std::vector< T > > &items) |
| Helper to compute the rows in initialization list to allow _n_rows to be const. | |
Private Attributes | |
| const CartesianProduct< W > | _weight |
| Data used to create Cartesian product; use a copy because a temporary can be supplied. | |
| const std::vector< std::vector< T > > | _items |
| Data used to create Cartesian product use a copy because a temporary can be supplied, as is the case in the CartesianProductSampler. | |
| std::deque< unsigned int > | _denomenators |
| Containers for lazy Cartesian product calculation. | |
| std::deque< unsigned int > | _moduli |
Definition at line 124 of file CartesianProduct.h.
| StochasticTools::WeightedCartesianProduct< T, W >::WeightedCartesianProduct | ( | const std::vector< std::vector< T > > & | items, |
| const std::vector< std::vector< W > > & | weights | ||
| ) |
Definition at line 142 of file CartesianProduct.h.
|
inherited |
Compute the complete Cartesian product matrix.
Definition at line 82 of file CartesianProduct.h.
Referenced by TEST().
|
inherited |
Compute specified row of Cartesian product matrix.
Definition at line 93 of file CartesianProduct.h.
Referenced by PolynomialQuadrature::ClenshawCurtisGrid::ClenshawCurtisGrid(), StochasticTools::MultiDimPolynomialGenerator::generateTuple(), PolynomialQuadrature::SmolyakGrid::SmolyakGrid(), and TEST().
|
staticprivateinherited |
Helper to compute the rows in initialization list to allow _n_rows to be const.
Definition at line 112 of file CartesianProduct.h.
|
inherited |
Compute specific value, given row and column, of the Cartesian product matrix.
Definition at line 103 of file CartesianProduct.h.
Referenced by TEST().
| W StochasticTools::WeightedCartesianProduct< T, W >::computeWeight | ( | std::size_t | row | ) | const |
Compute specific weight value, given row.
Definition at line 165 of file CartesianProduct.h.
Referenced by PolynomialQuadrature::ClenshawCurtisGrid::ClenshawCurtisGrid(), and TEST().
| std::vector< W > StochasticTools::WeightedCartesianProduct< T, W >::computeWeightVector | ( | ) | const |
Compute complete vector of weights.
Definition at line 155 of file CartesianProduct.h.
Referenced by TEST().
|
inlineinherited |
|
inlineinherited |
Total number of rows in the complete matrix.
Definition at line 41 of file CartesianProduct.h.
Referenced by PolynomialQuadrature::ClenshawCurtisGrid::ClenshawCurtisGrid(), StochasticTools::MultiDimPolynomialGenerator::generateTuple(), PolynomialQuadrature::SmolyakGrid::SmolyakGrid(), TEST(), and TEST().
|
privateinherited |
Containers for lazy Cartesian product calculation.
Definition at line 57 of file CartesianProduct.h.
Referenced by StochasticTools::CartesianProduct< T >::CartesianProduct().
|
privateinherited |
Data used to create Cartesian product use a copy because a temporary can be supplied, as is the case in the CartesianProductSampler.
Definition at line 54 of file CartesianProduct.h.
Referenced by StochasticTools::CartesianProduct< T >::CartesianProduct().
|
privateinherited |
Definition at line 58 of file CartesianProduct.h.
Referenced by StochasticTools::CartesianProduct< T >::CartesianProduct().
|
protectedinherited |
Definition at line 49 of file CartesianProduct.h.
Referenced by StochasticTools::CartesianProduct< T >::numCols().
|
protectedinherited |
Number of rows/columns.
Definition at line 48 of file CartesianProduct.h.
Referenced by StochasticTools::CartesianProduct< T >::numRows().
|
private |
Data used to create Cartesian product; use a copy because a temporary can be supplied.
Definition at line 138 of file CartesianProduct.h.