TiledArray::expressions::ScalExpr< Arg, Scalar > Class Template Reference

Documentation

template<typename Arg, typename Scalar>
class TiledArray::expressions::ScalExpr< Arg, Scalar >

Scaling expression.

Template Parameters
ArgThe argument expression type

Definition at line 58 of file scal_expr.h.

Public Types

typedef ScalExpr< Arg, Scalar > ScalExpr_
 This class type. More...
 
typedef UnaryExpr< ScalExpr_UnaryExpr_
 Unary base class type. More...
 
typedef ExprTrait< ScalExpr_ >::argument_type argument_type
 The argument expression type. More...
 
typedef ExprTrait< ScalExpr_ >::engine_type engine_type
 Expression engine type. More...
 
typedef ExprTrait< ScalExpr_ >::scalar_type scalar_type
 Scalar type. More...
 

Public Member Functions

 ScalExpr (const ScalExpr_ &)=default
 
 ScalExpr (ScalExpr_ &&)=default
 
 ~ScalExpr ()=default
 
ScalExpr_operator= (const ScalExpr_ &)=delete
 
ScalExpr_operator= (ScalExpr_ &&)=delete
 
 ScalExpr (const argument_type &arg, const scalar_type factor)
 Scaled expression constructor. More...
 
 ScalExpr (const ScalExpr_ &other, const scalar_type factor)
 Rescale expression constructor. More...
 
scalar_type factor () const
 Scaling factor accessor. More...
 

Member Typedef Documentation

◆ argument_type

template<typename Arg , typename Scalar >
typedef ExprTrait<ScalExpr_>::argument_type TiledArray::expressions::ScalExpr< Arg, Scalar >::argument_type

The argument expression type.

Definition at line 63 of file scal_expr.h.

◆ engine_type

template<typename Arg , typename Scalar >
typedef ExprTrait<ScalExpr_>::engine_type TiledArray::expressions::ScalExpr< Arg, Scalar >::engine_type

Expression engine type.

Definition at line 65 of file scal_expr.h.

◆ scalar_type

template<typename Arg , typename Scalar >
typedef ExprTrait<ScalExpr_>::scalar_type TiledArray::expressions::ScalExpr< Arg, Scalar >::scalar_type

Scalar type.

Definition at line 67 of file scal_expr.h.

◆ ScalExpr_

template<typename Arg , typename Scalar >
typedef ScalExpr<Arg, Scalar> TiledArray::expressions::ScalExpr< Arg, Scalar >::ScalExpr_

This class type.

Definition at line 60 of file scal_expr.h.

◆ UnaryExpr_

template<typename Arg , typename Scalar >
typedef UnaryExpr<ScalExpr_> TiledArray::expressions::ScalExpr< Arg, Scalar >::UnaryExpr_

Unary base class type.

Definition at line 61 of file scal_expr.h.

Constructor & Destructor Documentation

◆ ScalExpr() [1/4]

template<typename Arg , typename Scalar >
TiledArray::expressions::ScalExpr< Arg, Scalar >::ScalExpr ( const ScalExpr_ )
default

◆ ScalExpr() [2/4]

template<typename Arg , typename Scalar >
TiledArray::expressions::ScalExpr< Arg, Scalar >::ScalExpr ( ScalExpr_ &&  )
default

◆ ~ScalExpr()

template<typename Arg , typename Scalar >
TiledArray::expressions::ScalExpr< Arg, Scalar >::~ScalExpr ( )
default

◆ ScalExpr() [3/4]

template<typename Arg , typename Scalar >
TiledArray::expressions::ScalExpr< Arg, Scalar >::ScalExpr ( const argument_type arg,
const scalar_type  factor 
)
inline

Scaled expression constructor.

Parameters
argThe argument expression
factorThe scalar type

Definition at line 84 of file scal_expr.h.

◆ ScalExpr() [4/4]

template<typename Arg , typename Scalar >
TiledArray::expressions::ScalExpr< Arg, Scalar >::ScalExpr ( const ScalExpr_ other,
const scalar_type  factor 
)
inline

Rescale expression constructor.

Parameters
otherThe expression to be copied
factorThe scaling factor applied to the new expression

Definition at line 91 of file scal_expr.h.

Member Function Documentation

◆ factor()

template<typename Arg , typename Scalar >
scalar_type TiledArray::expressions::ScalExpr< Arg, Scalar >::factor ( ) const
inline

Scaling factor accessor.

Returns
The scaling factor

Definition at line 97 of file scal_expr.h.

◆ operator=() [1/2]

template<typename Arg , typename Scalar >
ScalExpr_& TiledArray::expressions::ScalExpr< Arg, Scalar >::operator= ( const ScalExpr_ )
delete

◆ operator=() [2/2]

template<typename Arg , typename Scalar >
ScalExpr_& TiledArray::expressions::ScalExpr< Arg, Scalar >::operator= ( ScalExpr_ &&  )
delete

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