TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches

#include <nda/map.hpp>

Detailed Description

template<class F>
struct nda::mapped< F >

Functor that is returned by the nda::map function.

Template Parameters
FCallable type.

Definition at line 169 of file map.hpp.

Public Member Functions

template<Array A0, Array... As>
expr_call< F, A0, As... > operator() (A0 &&a0, As &&...as) const
 Function call operator that returns a lazy function call expression.
 
template<Scalar T0, Scalar... Ts>
auto operator() (T0 t0, Ts... ts) const
 Function call operator that returns the result of the callable object applied to the scalar arguments.
 

Public Attributes

f
 Callable object.
 

Member Function Documentation

◆ operator()() [1/2]

template<class F >
template<Array A0, Array... As>
expr_call< F, A0, As... > nda::mapped< F >::operator() ( A0 && a0,
As &&... as ) const
inline

Function call operator that returns a lazy function call expression.

Template Parameters
A0First nda::Array argument type.
AsRest of the nda::Array argument types.
Parameters
a0First nda::Array argument.
asRest of the nda::Array arguments.
Returns
A lazy nda::expr_call object.

Definition at line 183 of file map.hpp.

◆ operator()() [2/2]

template<class F >
template<Scalar T0, Scalar... Ts>
auto nda::mapped< F >::operator() ( T0 t0,
Ts... ts ) const
inline

Function call operator that returns the result of the callable object applied to the scalar arguments.

Template Parameters
T0First nda::Scalar argument type.
TsRest of the nda::Scalar argument types.
Parameters
t0First nda::Scalar argument.
tsRest of the nda::Scalar arguments.
Returns
Result of the functor applied to the scalar arguments.

Definition at line 198 of file map.hpp.


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