ALPSCore reference
Public Types | Public Member Functions | List of all members
alps::alea::eigen_adapter< T, Derived > Class Template Reference

#include <computed.hpp>

Inheritance diagram for alps::alea::eigen_adapter< T, Derived >:
Inheritance graph
Collaboration diagram for alps::alea::eigen_adapter< T, Derived >:
Collaboration graph

Public Types

typedef T value_type
 
- Public Types inherited from alps::alea::computed< T >
typedef T value_type
 

Public Member Functions

 eigen_adapter (const Eigen::DenseBase< Derived > &in)
 
size_t size () const
 
void add_to (view< T > out) const
 
 ~eigen_adapter ()
 
- Public Member Functions inherited from alps::alea::computed< T >
virtual std::vector< size_t > shape () const
 
virtual computedclone ()
 
virtual ~computed ()
 

Detailed Description

template<typename T, typename Derived>
class alps::alea::eigen_adapter< T, Derived >

Definition at line 26 of file computed.hpp.

Member Typedef Documentation

template<typename T , typename Derived >
typedef T alps::alea::eigen_adapter< T, Derived >::value_type

Definition at line 146 of file computed.hpp.

Constructor & Destructor Documentation

template<typename T , typename Derived >
alps::alea::eigen_adapter< T, Derived >::eigen_adapter ( const Eigen::DenseBase< Derived > &  in)
inline

Definition at line 149 of file computed.hpp.

template<typename T , typename Derived >
alps::alea::eigen_adapter< T, Derived >::~eigen_adapter ( )
inline

Definition at line 168 of file computed.hpp.

Member Function Documentation

template<typename T , typename Derived >
void alps::alea::eigen_adapter< T, Derived >::add_to ( view< T >  out) const
inlinevirtual

Add computed result data to the buffer in out. If in(i) is the i-th component of the estimator, do the equivalent of:

for (size_t i = 0; i != size(); ++i)
    out[i] += in(i);

Implements alps::alea::computed< T >.

Definition at line 159 of file computed.hpp.

template<typename T , typename Derived >
size_t alps::alea::eigen_adapter< T, Derived >::size ( ) const
inlinevirtual

Number of elements of the computed result

Implements alps::alea::computed< T >.

Definition at line 157 of file computed.hpp.


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