21 : _is_cache_invalid(true), _is_generation(false)
30 : _number_of_terms(number_of_terms),
31 _is_cache_invalid(true),
32 _basis_evaluation(_number_of_terms, 0.0),
56const std::vector<Real> &
72const std::vector<Real> &
const std::vector< Real > & getAllGeneration()
Returns an array reference containing the value of each generation term.
Real getGeneration()
Gets the last term of the generation functional basis.
bool _is_cache_invalid
indicates if the evaluated values correspond to the current location
virtual void evaluateGeneration()=0
Evaluate the generation form of the functional basis.
Real getGenerationSeriesSum()
Gets the sum of all terms in the generation functional basis.
const std::vector< Real > & getAllExpansion()
Returns an array reference containing the value of each expansion term.
virtual void evaluateExpansion()=0
Evaluate the expansion form of the functional basis.
bool _is_generation
Indicates whether the current evaluation is expansion or generation.
unsigned int _number_of_terms
The number of terms in the series.
Real getExpansion()
Gets the #_order-th term of the expansion functional basis.
Real getExpansionSeriesSum()
Evaluates the sum of all terms in the expansion functional basis up to #_order.
static MooseEnum _domain_options
An enumeration of the domains available to each functional series.
bool isExpansion() const
Returns true if the current evaluation is expansion.
std::size_t getNumberOfTerms() const
Returns the number of terms in the series.
bool isGeneration() const
Returns true if the current evaluation is generation.
FunctionalBasisInterface()
Real load(std::size_t index) const
Helper function to load a value from #_series.
virtual void clearBasisEvaluation(const unsigned int &number_of_terms)
Set all entries of the basis evaluation to zero.
virtual bool isCacheInvalid() const =0
Whether the cached values correspond to the current point.
std::vector< Real > _basis_evaluation
Stores the values of the basis evaluation.
Real operator[](std::size_t index) const
Returns the current evaluation at the given index.
void save(std::size_t index, Real value)
Helper function to store a value in #_series.