TiledArray::expressions::ScalEngine< Arg, Scalar, Result > Class Template Reference

Documentation

template<typename Arg, typename Scalar, typename Result>
class TiledArray::expressions::ScalEngine< Arg, Scalar, Result >

Scaling expression engine.

Template Parameters
ArgThe argument expression engine type

Definition at line 77 of file scal_engine.h.

Public Types

typedef ScalEngine< Arg, Scalar, Result > ScalEngine_
 This class type. More...
 
typedef UnaryEngine< ScalEngine_UnaryEngine_
 Unary expression engine base type. More...
 
typedef UnaryEngine_::ExprEngine_ ExprEngine_
 Expression engine base type. More...
 
typedef EngineTrait< ScalEngine_ >::argument_type argument_type
 The argument expression engine type. More...
 
typedef EngineTrait< ScalEngine_ >::value_type value_type
 The result tile type. More...
 
typedef EngineTrait< ScalEngine_ >::scalar_type scalar_type
 Tile scalar type. More...
 
typedef EngineTrait< ScalEngine_ >::op_type op_type
 The tile operation type. More...
 
typedef EngineTrait< ScalEngine_ >::policy policy
 The result policy type. More...
 
typedef EngineTrait< ScalEngine_ >::dist_eval_type dist_eval_type
 The distributed evaluator type. More...
 
typedef EngineTrait< ScalEngine_ >::size_type size_type
 Size type. More...
 
typedef EngineTrait< ScalEngine_ >::trange_type trange_type
 Tiled range type. More...
 
typedef EngineTrait< ScalEngine_ >::shape_type shape_type
 Shape type. More...
 
typedef EngineTrait< ScalEngine_ >::pmap_interface pmap_interface
 Process map interface type. More...
 

Public Member Functions

template<typename A , typename S >
 ScalEngine (const ScalExpr< A, S > &expr)
 Constructor. More...
 
shape_type make_shape () const
 Non-permuting shape factory function. More...
 
shape_type make_shape (const Permutation &perm) const
 Permuting shape factory function. More...
 
op_type make_tile_op () const
 Non-permuting tile operation factory function. More...
 
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>>
op_type make_tile_op (const Perm &perm) const
 Permuting tile operation factory function. More...
 
std::string make_tag () const
 Expression identification tag. More...
 

Member Typedef Documentation

◆ argument_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::argument_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::argument_type

The argument expression engine type.

Definition at line 88 of file scal_engine.h.

◆ dist_eval_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::dist_eval_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::dist_eval_type

The distributed evaluator type.

Definition at line 100 of file scal_engine.h.

◆ ExprEngine_

template<typename Arg , typename Scalar , typename Result >
typedef UnaryEngine_::ExprEngine_ TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::ExprEngine_

Expression engine base type.

Definition at line 84 of file scal_engine.h.

◆ op_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::op_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::op_type

The tile operation type.

Definition at line 96 of file scal_engine.h.

◆ pmap_interface

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::pmap_interface TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::pmap_interface

Process map interface type.

Definition at line 110 of file scal_engine.h.

◆ policy

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::policy TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::policy

The result policy type.

Definition at line 98 of file scal_engine.h.

◆ scalar_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::scalar_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::scalar_type

Tile scalar type.

Definition at line 94 of file scal_engine.h.

◆ ScalEngine_

template<typename Arg , typename Scalar , typename Result >
typedef ScalEngine<Arg, Scalar, Result> TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::ScalEngine_

This class type.

Definition at line 80 of file scal_engine.h.

◆ shape_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::shape_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::shape_type

Shape type.

Definition at line 108 of file scal_engine.h.

◆ size_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::size_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::size_type

Size type.

Definition at line 104 of file scal_engine.h.

◆ trange_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::trange_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::trange_type

Tiled range type.

Definition at line 106 of file scal_engine.h.

◆ UnaryEngine_

template<typename Arg , typename Scalar , typename Result >
typedef UnaryEngine<ScalEngine_> TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::UnaryEngine_

Unary expression engine base type.

Definition at line 82 of file scal_engine.h.

◆ value_type

template<typename Arg , typename Scalar , typename Result >
typedef EngineTrait<ScalEngine_>::value_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::value_type

The result tile type.

Definition at line 92 of file scal_engine.h.

Constructor & Destructor Documentation

◆ ScalEngine()

template<typename Arg , typename Scalar , typename Result >
template<typename A , typename S >
TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::ScalEngine ( const ScalExpr< A, S > &  expr)
inline

Constructor.

Template Parameters
AThe argument expression type
SThe expression scalar type
Parameters
exprThe parent expression

Definition at line 122 of file scal_engine.h.

Member Function Documentation

◆ make_shape() [1/2]

template<typename Arg , typename Scalar , typename Result >
shape_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::make_shape ( ) const
inline

Non-permuting shape factory function.

Returns
The result shape

Definition at line 128 of file scal_engine.h.

◆ make_shape() [2/2]

template<typename Arg , typename Scalar , typename Result >
shape_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::make_shape ( const Permutation perm) const
inline

Permuting shape factory function.

Parameters
permThe permutation to be applied to the array
Returns
The result shape

Definition at line 136 of file scal_engine.h.

◆ make_tag()

template<typename Arg , typename Scalar , typename Result >
std::string TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::make_tag ( ) const
inline

Expression identification tag.

Returns
An expression tag used to identify this expression

Definition at line 158 of file scal_engine.h.

◆ make_tile_op() [1/2]

template<typename Arg , typename Scalar , typename Result >
op_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::make_tile_op ( ) const
inline

Non-permuting tile operation factory function.

Returns
The tile operation

Definition at line 143 of file scal_engine.h.

◆ make_tile_op() [2/2]

template<typename Arg , typename Scalar , typename Result >
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>>
op_type TiledArray::expressions::ScalEngine< Arg, Scalar, Result >::make_tile_op ( const Perm &  perm) const
inline

Permuting tile operation factory function.

Parameters
permThe permutation to be applied to tiles
Returns
The tile operation

Definition at line 151 of file scal_engine.h.


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