GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmResultsRuleAggregator Class Reference

A helper class to help combining values evaluated at every integration point into a single value, according to the given aggregation rule. The aggregated value is built on the provided buffer. For non scalar data, aggregation is performed by component, as if done over multiple scalar values. More...

Public Member Functions

 GmResultsRuleAggregator (GmResultsEvalSet::GmEvalSetAggregationRule rule, double *buffer, int bufferSize)
 
void add (const double *data)
 Adds a value with size equal to _size to the aggregated value.
 
double * end ()
 

Private Attributes

double * _buffer
 The result buffer.
 
int _size
 The buffer size.
 
GmResultsEvalSet::GmEvalSetAggregationRule _op
 
int _count
 The applied operation.
 
double _sqrNorm
 The last calculated norm for _op == MINNORM or MAXNORM. Stores the square of the norm.
 

Detailed Description

A helper class to help combining values evaluated at every integration point into a single value, according to the given aggregation rule. The aggregated value is built on the provided buffer. For non scalar data, aggregation is performed by component, as if done over multiple scalar values.

Member Data Documentation

◆ _count

int GmResultsRuleAggregator::_count
private

The applied operation.

Number of added entries


The documentation for this class was generated from the following file: