|
TiledArray
0.7.0
|
Unary tile operation wrapper. More...
#include <unary_wrapper.h>
Public Types | |
| typedef UnaryWrapper< Op > | UnaryWrapper_ |
| typedef Op::argument_type | argument_type |
| Argument type. More... | |
| typedef Op::result_type | result_type |
| The result tile type. More... | |
| template<typename T > | |
| using | eval_t = typename eval_trait< std::decay_t< T > >::type |
Public Member Functions | |
| UnaryWrapper (const UnaryWrapper_ &)=default | |
| UnaryWrapper (UnaryWrapper_ &&)=default | |
| ~UnaryWrapper ()=default | |
| UnaryWrapper_ & | operator= (const UnaryWrapper_ &)=default |
| UnaryWrapper_ & | operator= (UnaryWrapper_ &&)=default |
| UnaryWrapper (const Op &op, const Permutation &perm) | |
| UnaryWrapper (const Op &op) | |
| const Permutation & | permutation () const |
| Permutation accessor. More... | |
| auto | operator() (argument_type &arg) const |
Apply operator to arg and possibly permute the result. More... | |
| auto | operator() (const argument_type &arg) const |
Apply operator to arg and possibly permute the result. More... | |
| template<typename A , std::enable_if_t< is_nonarray_lazy_tile_v< A >> * = nullptr> | |
| auto | operator() (A &&arg) const |
| Evaluate a lazy tile. More... | |
| template<typename A , std::enable_if_t< is_array_tile_v< A >> * = nullptr> | |
| auto | operator() (A &&arg) const |
| Evaluate a lazy array tile. More... | |
| template<typename A , std::enable_if_t< is_lazy_tile_v< A >> * = nullptr> | |
| auto | consume (A &&arg) const |
| Consume a lazy tile. More... | |
| template<typename A , std::enable_if_t<!is_lazy_tile_v< A >> * = nullptr> | |
| result_type | consume (A &&arg) const |
Static Public Attributes | |
| static constexpr bool | is_consumable = Op::is_consumable |
| Boolean value that indicates the argument can always be consumed. More... | |
| template<typename T > | |
| static constexpr auto | is_lazy_tile_v = is_lazy_tile<std::decay_t<T>>::value |
| template<typename T > | |
| static constexpr auto | is_array_tile_v = is_array_tile<std::decay_t<T>>::value |
| template<typename T > | |
| static constexpr auto | is_nonarray_lazy_tile_v = is_lazy_tile_v<T> && !is_array_tile_v<T> |
Unary tile operation wrapper.
This wrapper class is handles evaluation of lazily evaluated tiles in unary operations and forwards the evaluated arguments to the base operation object.
The base unary operation class must have the following interface.
| Op | The base binary operation type |
Definition at line 82 of file unary_wrapper.h.
| typedef Op::argument_type TiledArray::detail::UnaryWrapper< Op >::argument_type |
Argument type.
Definition at line 85 of file unary_wrapper.h.
| using TiledArray::detail::UnaryWrapper< Op >::eval_t = typename eval_trait<std::decay_t<T> >::type |
Definition at line 102 of file unary_wrapper.h.
| typedef Op::result_type TiledArray::detail::UnaryWrapper< Op >::result_type |
The result tile type.
Definition at line 86 of file unary_wrapper.h.
| typedef UnaryWrapper<Op> TiledArray::detail::UnaryWrapper< Op >::UnaryWrapper_ |
Definition at line 84 of file unary_wrapper.h.
|
default |
|
default |
|
default |
|
inline |
Definition at line 118 of file unary_wrapper.h.
|
inline |
Definition at line 120 of file unary_wrapper.h.
|
inline |
Consume a lazy tile.
Definition at line 193 of file unary_wrapper.h.

|
inline |
Definition at line 212 of file unary_wrapper.h.
|
inline |
Apply operator to arg and possibly permute the result.
| arg | The argument |
arg . Definition at line 134 of file unary_wrapper.h.
|
inline |
Apply operator to arg and possibly permute the result.
| arg | The argument |
arg . Definition at line 143 of file unary_wrapper.h.
|
inline |
Evaluate a lazy tile.
This function will evaluate arg, then pass the evaluated tile to the Op callable.
| A | The lazy tile type |
| arg | The lazy tile argument |
arg. Definition at line 157 of file unary_wrapper.h.

|
inline |
Evaluate a lazy array tile.
This function will evaluate arg, then pass the evaluated tile to the Op callable , optionally consuming the evaluated tile in the process.
| A | The lazy tile type |
| arg | The lazy tile argument |
arg. Definition at line 172 of file unary_wrapper.h.

|
default |
|
default |
|
inline |
Permutation accessor.
Definition at line 126 of file unary_wrapper.h.
|
static |
Definition at line 96 of file unary_wrapper.h.
|
static |
Boolean value that indicates the argument can always be consumed.
Definition at line 90 of file unary_wrapper.h.
|
static |
Definition at line 93 of file unary_wrapper.h.
|
static |
Definition at line 99 of file unary_wrapper.h.