Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::Monoid_Kernel< dtype, g > Class Template Reference

#include <kernel.h>

Inheritance diagram for CTF::Monoid_Kernel< dtype, g >:
Collaboration diagram for CTF::Monoid_Kernel< dtype, g >:

Public Member Functions

 Monoid_Kernel ()
 
void accum (char const *a, char *b) const
 b+=a More...
 
virtual void init_shell (int64_t n, char *arr) const
 initialize n objects to zero More...
 

Static Public Member Functions

static MPI_Op get_MPI_Op ()
 
static void xpy (int n, dtype const *X, int incX, dtype *Y, int incY)
 

Additional Inherited Members

- Data Fields inherited from CTF_int::accumulatable
int el_size
 size of each element of algstrct in bytes More...
 

Detailed Description

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
class CTF::Monoid_Kernel< dtype, g >

Definition at line 115 of file kernel.h.

Constructor & Destructor Documentation

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
CTF::Monoid_Kernel< dtype, g >::Monoid_Kernel ( )
inline

Definition at line 132 of file kernel.h.

Member Function Documentation

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
void CTF::Monoid_Kernel< dtype, g >::accum ( char const *  a,
char *  b 
) const
inlinevirtual

b+=a

Reimplemented from CTF_int::accumulatable.

Definition at line 136 of file kernel.h.

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
static MPI_Op CTF::Monoid_Kernel< dtype, g >::get_MPI_Op ( )
inlinestatic

Definition at line 117 of file kernel.h.

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
virtual void CTF::Monoid_Kernel< dtype, g >::init_shell ( int64_t  n,
char *  arr 
) const
inlinevirtual

initialize n objects to zero

Parameters
[in]nnumber of items
[in]arrarray containing n items, to be set to zero

Reimplemented from CTF_int::accumulatable.

Definition at line 155 of file kernel.h.

template<typename dtype = double, void(*)(dtype, dtype &) g = default_monoid<dtype>>
static void CTF::Monoid_Kernel< dtype, g >::xpy ( int  n,
dtype const *  X,
int  incX,
dtype *  Y,
int  incY 
)
inlinestatic

Definition at line 141 of file kernel.h.


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