#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. More... | |
W | computeWeight (std::size_t row) const |
Compute specific weight value, given row. More... | |
std::vector< std::vector< T > > | computeMatrix () const |
Compute the complete Cartesian product matrix. More... | |
std::vector< T > | computeRow (std::size_t row) const |
Compute specified row of Cartesian product matrix. More... | |
T | computeValue (std::size_t row, std::size_t col) const |
Compute specific value, given row and column, of the Cartesian product matrix. More... | |
std::size_t | numRows () const |
Total number of rows in the complete matrix. More... | |
std::size_t | numCols () const |
Total number of columns in the complete matrix. More... | |
Protected Attributes | |
const std::size_t | _n_rows |
Number of rows/columns. More... | |
const std::size_t | _n_cols |
Private Attributes | |
const CartesianProduct< W > | _weight |
Data used to create Cartesian product; use a copy because a temporary can be supplied. More... | |
Definition at line 123 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 141 of file CartesianProduct.h.
|
inherited |
Compute the complete Cartesian product matrix.
Definition at line 81 of file CartesianProduct.h.
|
inherited |
Compute specified row of Cartesian product matrix.
Definition at line 92 of file CartesianProduct.h.
Referenced by PolynomialQuadrature::ClenshawCurtisGrid::ClenshawCurtisGrid(), StochasticTools::MultiDimPolynomialGenerator::generateTuple(), and PolynomialQuadrature::SmolyakGrid::SmolyakGrid().
|
inherited |
Compute specific value, given row and column, of the Cartesian product matrix.
Definition at line 102 of file CartesianProduct.h.
W StochasticTools::WeightedCartesianProduct< T, W >::computeWeight | ( | std::size_t | row | ) | const |
Compute specific weight value, given row.
Definition at line 164 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 154 of file CartesianProduct.h.
Referenced by TEST().
|
inlineinherited |
Total number of columns in the complete matrix.
Definition at line 43 of file CartesianProduct.h.
Referenced by TEST().
|
inlineinherited |
Total number of rows in the complete matrix.
Definition at line 40 of file CartesianProduct.h.
Referenced by PolynomialQuadrature::ClenshawCurtisGrid::ClenshawCurtisGrid(), StochasticTools::MultiDimPolynomialGenerator::generateTuple(), PolynomialQuadrature::SmolyakGrid::SmolyakGrid(), and TEST().
|
protectedinherited |
Definition at line 48 of file CartesianProduct.h.
|
protectedinherited |
Number of rows/columns.
Definition at line 47 of file CartesianProduct.h.
|
private |
Data used to create Cartesian product; use a copy because a temporary can be supplied.
Definition at line 137 of file CartesianProduct.h.