Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::Function< dtype_A, dtype_B, dtype_C > Class Template Reference

#include <functions.h>

Public Member Functions

 Function (std::function< dtype_B(dtype_A)> f_)
 
 Function (std::function< dtype_C(dtype_A, dtype_B)> f_, bool is_comm=false)
 
CTF_int::Unifun_Term operator() (CTF_int::Term const &A) const
 
CTF_int::Bifun_Term operator() (CTF_int::Term const &A, CTF_int::Term const &B) const
 
 operator Univar_Function< dtype_A, dtype_B > () const
 
 operator Bivar_Function< dtype_A, dtype_B, dtype_C > () const
 
 ~Function ()
 

Data Fields

bool is_univar
 
Univar_Function< dtype_A, dtype_B > * univar
 
bool is_bivar
 
Bivar_Function< dtype_A, dtype_B, dtype_C > * bivar
 

Detailed Description

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
class CTF::Function< dtype_A, dtype_B, dtype_C >

Definition at line 441 of file functions.h.

Constructor & Destructor Documentation

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF::Function< dtype_A, dtype_B, dtype_C >::Function ( std::function< dtype_B(dtype_A)>  f_)
inline

Definition at line 448 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF::Function< dtype_A, dtype_B, dtype_C >::Function ( std::function< dtype_C(dtype_A, dtype_B)>  f_,
bool  is_comm = false 
)
inline

Definition at line 455 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF::Function< dtype_A, dtype_B, dtype_C >::~Function ( )
inline

Definition at line 481 of file functions.h.

Member Function Documentation

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF::Function< dtype_A, dtype_B, dtype_C >::operator Bivar_Function< dtype_A, dtype_B, dtype_C > ( ) const
inline

Definition at line 476 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF::Function< dtype_A, dtype_B, dtype_C >::operator Univar_Function< dtype_A, dtype_B > ( ) const
inline

Definition at line 471 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF_int::Unifun_Term CTF::Function< dtype_A, dtype_B, dtype_C >::operator() ( CTF_int::Term const &  A) const
inline

Definition at line 461 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
CTF_int::Bifun_Term CTF::Function< dtype_A, dtype_B, dtype_C >::operator() ( CTF_int::Term const &  A,
CTF_int::Term const &  B 
) const
inline

Definition at line 466 of file functions.h.

Field Documentation

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
Bivar_Function<dtype_A, dtype_B, dtype_C>* CTF::Function< dtype_A, dtype_B, dtype_C >::bivar

Definition at line 446 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
bool CTF::Function< dtype_A, dtype_B, dtype_C >::is_bivar

Definition at line 445 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
bool CTF::Function< dtype_A, dtype_B, dtype_C >::is_univar

Definition at line 443 of file functions.h.

template<typename dtype_A = double, typename dtype_B = dtype_A, typename dtype_C = dtype_A>
Univar_Function<dtype_A, dtype_B>* CTF::Function< dtype_A, dtype_B, dtype_C >::univar

Definition at line 444 of file functions.h.


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