https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MultiDimPolynomialGenerator.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "libmesh/utility.h"
13
14#include "DataIO.h"
15#include "CartesianProduct.h"
16
20namespace StochasticTools
21{
27{
28public:
30
32
40 static std::vector<std::vector<unsigned int>>
41 generateTuple(unsigned int n_dims, unsigned int max_degree, bool include_bias = true);
42
44 static bool sortTuple(const std::vector<unsigned int> & first,
45 const std::vector<unsigned int> & second);
46};
47
48}
Class containing functionalitties to generate the degress of the 1D Polynomials within every term of ...
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 | ...
static bool sortTuple(const std::vector< unsigned int > &first, const std::vector< unsigned int > &second)
Tuple sorter function.
Enum for batch type in stochastic tools MultiApp.