Class containing functionalitties to generate the degress of the 1D Polynomials within every term of a multi-dimensional polynomial.
More...
#include <MultiDimPolynomialGenerator.h>
Public Member Functions | |
MultiDimPolynomialGenerator () | |
~MultiDimPolynomialGenerator ()=default | |
Static Public Member Functions | |
static std::vector< std::vector< unsigned int > > | generateTuple (unsigned int n_dims, unsigned int max_degree, bool include_bias=true) |
Function computing for computing _tuple Example for ndim = 3, order = 4: | 0 | 1 0 0 | 2 1 1 0 0 0 | 3 2 2 1 1 1 0 0 0 0 | | 0 | 0 1 0 | 0 1 0 2 1 0 | 0 1 0 2 1 0 3 2 1 0 | | 0 | 0 0 1 | 0 0 1 0 1 2 | 0 0 1 0 1 2 0 1 2 3 |. More... | |
static bool | sortTuple (const std::vector< unsigned int > &first, const std::vector< unsigned int > &second) |
Tuple sorter function. More... | |
Class containing functionalitties to generate the degress of the 1D Polynomials within every term of a multi-dimensional polynomial.
Definition at line 26 of file MultiDimPolynomialGenerator.h.
|
inline |
Definition at line 29 of file MultiDimPolynomialGenerator.h.
|
default |
|
static |
Function computing for computing _tuple Example for ndim = 3, order = 4: | 0 | 1 0 0 | 2 1 1 0 0 0 | 3 2 2 1 1 1 0 0 0 0 | | 0 | 0 1 0 | 0 1 0 2 1 0 | 0 1 0 2 1 0 3 2 1 0 | | 0 | 0 0 1 | 0 0 1 0 1 2 | 0 0 1 0 1 2 0 1 2 3 |.
Definition at line 16 of file MultiDimPolynomialGenerator.C.
|
static |
Tuple sorter function.
Definition at line 50 of file MultiDimPolynomialGenerator.C.
Referenced by generateTuple().