MADNESS 0.10.1
Public Types | Public Member Functions | Public Attributes | List of all members
madness::ScalarResult< T > Class Template Reference

#include <macrotaskq.h>

Public Types

typedef ScalarResultImpl< TimplT
 

Public Member Functions

 ScalarResult ()=default
 
 ScalarResult (const std::shared_ptr< implT > &impl)
 
 ScalarResult (World &world)
 
void gaxpy (const double a, const T &right, double b, const bool fence=true)
 accumulate, optional fence
 
T get ()
 after completion of the taskq get the final value
 
std::shared_ptr< implTget_impl () const
 
T get_local () const
 after completion of the taskq get the final value
 
uniqueidT id () const
 
ScalarResultoperator= (const T &x)
 
template<typename Archive >
void serialize (Archive &ar)
 
void set_impl (const std::shared_ptr< implT > &newimpl)
 

Public Attributes

std::shared_ptr< implTimpl
 

Member Typedef Documentation

◆ implT

template<typename T = double>
typedef ScalarResultImpl<T> madness::ScalarResult< T >::implT

Constructor & Destructor Documentation

◆ ScalarResult() [1/3]

template<typename T = double>
madness::ScalarResult< T >::ScalarResult ( )
default

◆ ScalarResult() [2/3]

template<typename T = double>
madness::ScalarResult< T >::ScalarResult ( World world)
inline

◆ ScalarResult() [3/3]

template<typename T = double>
madness::ScalarResult< T >::ScalarResult ( const std::shared_ptr< implT > &  impl)
inline

Member Function Documentation

◆ gaxpy()

template<typename T = double>
void madness::ScalarResult< T >::gaxpy ( const double  a,
const T right,
double  b,
const bool  fence = true 
)
inline

accumulate, optional fence

References a, b, and madness::ScalarResult< T >::impl.

Referenced by madness::gaxpy().

◆ get()

template<typename T = double>
T madness::ScalarResult< T >::get ( )
inline

after completion of the taskq get the final value

References madness::ScalarResult< T >::impl.

Referenced by test_scalar_task().

◆ get_impl()

template<typename T = double>
std::shared_ptr< implT > madness::ScalarResult< T >::get_impl ( ) const
inline

◆ get_local()

template<typename T = double>
T madness::ScalarResult< T >::get_local ( ) const
inline

after completion of the taskq get the final value

References madness::ScalarResult< T >::impl.

◆ id()

template<typename T = double>
uniqueidT madness::ScalarResult< T >::id ( ) const
inline

◆ operator=()

template<typename T = double>
ScalarResult & madness::ScalarResult< T >::operator= ( const T x)
inline

◆ serialize()

template<typename T = double>
template<typename Archive >
void madness::ScalarResult< T >::serialize ( Archive &  ar)
inline

◆ set_impl()

template<typename T = double>
void madness::ScalarResult< T >::set_impl ( const std::shared_ptr< implT > &  newimpl)
inline

Member Data Documentation

◆ impl

template<typename T = double>
std::shared_ptr<implT> madness::ScalarResult< T >::impl

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