MADNESS 0.10.1
madness::FunctionImpl< T, NDIM >::project_out_op< LDIM > Struct Template Reference

project the low-dim function g on the hi-dim function f: result(x) = <f(x,y) | g(y)> More...

#include <funcimpl.h>

Collaboration diagram for madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >:

Public Types

typedef std::pair< bool, coeffT > argT
typedef CoeffTracker< T, LDIM > ctL
typedef FunctionImpl< T, NDIM-LDIM > implL1
typedef project_out_op< LDIM > this_type

Public Member Functions

 project_out_op ()=default
 project_out_op (const implT *fimpl, implL1 *result, const ctL &iag, const int dim)
 project_out_op (const project_out_op &other)
Future< this_type > activate () const
 retrieve the coefficients (parent coeffs might be remote)
this_type forward_ctor (const implT *fimpl1, implL1 *result1, const ctL &iag1, const int dim1)
 taskq-compatible ctor
this_type make_child (const keyT &child) const
Future< argT > operator() (const Key< NDIM > &key) const
 do the actual contraction
bool randomize () const
template<typename Archive>
void serialize (const Archive &ar)

Public Attributes

int dim
 0: project 0..LDIM-1, 1: project LDIM..NDIM-1
const implT * fimpl
 the hi dim function f
ctL iag
 the low dim function g
implL1 * result
 the low dim result function

Detailed Description

template<typename T, std::size_t NDIM>
template<size_t LDIM>
struct madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >

project the low-dim function g on the hi-dim function f: result(x) = <f(x,y) | g(y)>

Member Typedef Documentation

◆ argT

template<typename T, std::size_t NDIM>
template<size_t LDIM>
typedef std::pair<bool,coeffT> madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::argT

◆ ctL

template<typename T, std::size_t NDIM>
template<size_t LDIM>
typedef CoeffTracker<T,LDIM> madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::ctL

◆ implL1

template<typename T, std::size_t NDIM>
template<size_t LDIM>
typedef FunctionImpl<T,NDIM-LDIM> madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::implL1

◆ this_type

template<typename T, std::size_t NDIM>
template<size_t LDIM>
typedef project_out_op<LDIM> madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::this_type

Constructor & Destructor Documentation

◆ project_out_op() [1/3]

template<typename T, std::size_t NDIM>
template<size_t LDIM>
madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::project_out_op ( )
default

Referenced by project_out_op().

◆ project_out_op() [2/3]

template<typename T, std::size_t NDIM>
template<size_t LDIM>
madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::project_out_op ( const implT * fimpl,
implL1 * result,
const ctL & iag,
const int dim )
inline

References dim, fimpl, iag, and result.

◆ project_out_op() [3/3]

template<typename T, std::size_t NDIM>
template<size_t LDIM>
madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::project_out_op ( const project_out_op< LDIM > & other)
inline

References project_out_op(), dim, fimpl, iag, and result.

Member Function Documentation

◆ activate()

template<typename T, std::size_t NDIM>
template<size_t LDIM>
Future< this_type > madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::activate ( ) const
inline

retrieve the coefficients (parent coeffs might be remote)

References dim, fimpl, forward_ctor(), g1(), iag, result, and madness::detail::wrap_mem_fn().

◆ forward_ctor()

template<typename T, std::size_t NDIM>
template<size_t LDIM>
this_type madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::forward_ctor ( const implT * fimpl1,
implL1 * result1,
const ctL & iag1,
const int dim1 )
inline

taskq-compatible ctor

Referenced by activate().

◆ make_child()

template<typename T, std::size_t NDIM>
template<size_t LDIM>
this_type madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::make_child ( const keyT & child) const
inline

◆ operator()()

◆ randomize()

template<typename T, std::size_t NDIM>
template<size_t LDIM>
bool madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::randomize ( ) const
inline

◆ serialize()

template<typename T, std::size_t NDIM>
template<size_t LDIM>
template<typename Archive>
void madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::serialize ( const Archive & ar)
inline

References dim, fimpl, iag, and result.

Member Data Documentation

◆ dim

template<typename T, std::size_t NDIM>
template<size_t LDIM>
int madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::dim

0: project 0..LDIM-1, 1: project LDIM..NDIM-1

Referenced by project_out_op(), project_out_op(), activate(), make_child(), operator()(), and serialize().

◆ fimpl

template<typename T, std::size_t NDIM>
template<size_t LDIM>
const implT* madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::fimpl

the hi dim function f

Referenced by project_out_op(), project_out_op(), activate(), make_child(), operator()(), and serialize().

◆ iag

template<typename T, std::size_t NDIM>
template<size_t LDIM>
ctL madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::iag

the low dim function g

Referenced by project_out_op(), project_out_op(), activate(), make_child(), operator()(), and serialize().

◆ result

template<typename T, std::size_t NDIM>
template<size_t LDIM>
implL1* madness::FunctionImpl< T, NDIM >::project_out_op< LDIM >::result
mutable

the low dim result function

Referenced by project_out_op(), project_out_op(), activate(), make_child(), operator()(), and serialize().


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