TiledArray  0.7.0
TiledArray::eval_trait< T > Struct Template Reference

Determine the object type used in the evaluation of tensor expressions. More...

#include <type_traits.h>

Inheritance diagram for TiledArray::eval_trait< T >:
Collaboration diagram for TiledArray::eval_trait< T >:

Additional Inherited Members

- Public Types inherited from TiledArray::detail::eval_trait_base< T >
typedef T type
 
- Static Public Attributes inherited from TiledArray::detail::eval_trait_base< T >
static constexpr bool is_consumable
 
static constexpr bool nonblocking
 

Detailed Description

template<typename T>
struct TiledArray::eval_trait< T >

Determine the object type used in the evaluation of tensor expressions.

This trait class allows user to specify the object type used in an expression by providing a (partial) template specialization of this class for a user defined tile types. The default implementation uses T::eval_type the evaluation type, if no specialization has been provided. If no specialization is provided and the tile does not define an eval_type, the tile is not treated as a lazy tile. This class also provides the is_consumable flag that indicates if the evaluated tile object is consumable.

Template Parameters
TThe lazy tile type

Definition at line 296 of file type_traits.h.


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