PeriDyno 1.2.1
Loading...
Searching...
No Matches
dyno::Reduction< T > Class Template Reference

#include <Reduction.h>

Public Member Functions

 Reduction ()
 
 ~Reduction ()
 
T accumulate (const T *val, const uint num)
 
T maximum (const T *val, const uint num)
 
T minimum (const T *val, const uint num)
 
T average (const T *val, const uint num)
 

Static Public Member Functions

static Reduction * Create (const uint n)
 

Private Member Functions

 Reduction (const uint num)
 
void allocAuxiliaryArray (const uint num)
 
uint getAuxiliaryArraySize (const uint n)
 

Private Attributes

uint m_num
 
T * m_aux
 
uint m_auxNum
 

Detailed Description

template<typename T>
class dyno::Reduction< T >

Definition at line 8 of file Reduction.h.

Constructor & Destructor Documentation

◆ Reduction() [1/2]

template<typename T>
dyno::Reduction< T >::Reduction ( )
Here is the caller graph for this function:

◆ ~Reduction()

template<typename T>
dyno::Reduction< T >::~Reduction ( )

◆ Reduction() [2/2]

template<typename T>
dyno::Reduction< T >::Reduction ( const uint num)
private

Member Function Documentation

◆ accumulate()

template<typename T>
T dyno::Reduction< T >::accumulate ( const T * val,
const uint num )
Here is the caller graph for this function:

◆ allocAuxiliaryArray()

template<typename T>
void dyno::Reduction< T >::allocAuxiliaryArray ( const uint num)
private

◆ average()

template<typename T>
T dyno::Reduction< T >::average ( const T * val,
const uint num )

◆ Create()

template<typename T>
static Reduction * dyno::Reduction< T >::Create ( const uint n)
static
Here is the call graph for this function:

◆ getAuxiliaryArraySize()

template<typename T>
uint dyno::Reduction< T >::getAuxiliaryArraySize ( const uint n)
private

◆ maximum()

template<typename T>
T dyno::Reduction< T >::maximum ( const T * val,
const uint num )
Here is the caller graph for this function:

◆ minimum()

template<typename T>
T dyno::Reduction< T >::minimum ( const T * val,
const uint num )
Here is the caller graph for this function:

Member Data Documentation

◆ m_aux

template<typename T>
T* dyno::Reduction< T >::m_aux
private

Definition at line 33 of file Reduction.h.

◆ m_auxNum

template<typename T>
uint dyno::Reduction< T >::m_auxNum
private

Definition at line 34 of file Reduction.h.

◆ m_num

template<typename T>
uint dyno::Reduction< T >::m_num
private

Definition at line 31 of file Reduction.h.


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