TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable > Class Template Reference
Documentation
template<typename Result, typename Arg, typename Scalar, bool Consumable>
class TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable >
Tile shift operation.
This tile operation will shift the range of the tile and/or apply a permutation to the result tensor.
- Template Parameters
-
Result The result type Arg The argument type Scalar The scaling factor type Consumable Flag that is true
when Arg is consumable
Public Types | |
typedef ScalShift< Result, Arg, Scalar, Consumable > | ScalShift_ |
This object type. More... | |
typedef Arg | argument_type |
The argument type. More... | |
typedef Scalar | scalar_type |
The scaling factor type. More... | |
typedef Result | result_type |
The result tile type. More... | |
Public Member Functions | |
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>> | |
result_type | eval (const argument_type &arg, const Perm &perm) const |
template<bool C> | |
std::enable_if<!C, result_type >::type | eval (const argument_type &arg) const |
template<bool C> | |
std::enable_if< C, result_type >::type | eval (argument_type &arg) const |
ScalShift ()=delete | |
ScalShift (const ScalShift_ &)=default | |
ScalShift (ScalShift_ &&)=default | |
~ScalShift ()=default | |
ScalShift_ & | operator= (const ScalShift_ &)=default |
ScalShift_ & | operator= (ScalShift_ &&)=default |
ScalShift (const std::vector< long > &range_shift, const scalar_type factor) | |
Default constructor. More... | |
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>> | |
result_type | operator() (const argument_type &arg, const Perm &perm) const |
Shift and permute operator. More... | |
template<typename A > | |
result_type | operator() (A &&arg) const |
Consuming shift operation. More... | |
result_type | consume (argument_type &arg) const |
Explicit consuming shift operation. More... | |
Static Public Attributes | |
static constexpr bool | is_consumable |
Member Typedef Documentation
◆ argument_type
template<typename Result , typename Arg , typename Scalar , bool Consumable>
typedef Arg TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable >::argument_type |
◆ result_type
template<typename Result , typename Arg , typename Scalar , bool Consumable>
typedef Result TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable >::result_type |
◆ scalar_type
template<typename Result , typename Arg , typename Scalar , bool Consumable>
typedef Scalar TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable >::scalar_type |
◆ ScalShift_
template<typename Result , typename Arg , typename Scalar , bool Consumable>
typedef ScalShift<Result, Arg, Scalar, Consumable> TiledArray::detail::ScalShift< Result, Arg, Scalar, Consumable >::ScalShift_ |
Constructor & Destructor Documentation
◆ ScalShift() [1/4]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
delete |
◆ ScalShift() [2/4]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
default |
◆ ScalShift() [3/4]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
default |
◆ ~ScalShift()
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
default |
◆ ScalShift() [4/4]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
inline |
Member Function Documentation
◆ consume()
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
inline |
◆ eval() [1/3]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
template<bool C>
|
inline |
◆ eval() [2/3]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
template<bool C>
|
inline |
◆ eval() [3/3]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>>
|
inline |
◆ operator()() [1/2]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
template<typename A >
|
inline |
◆ operator()() [2/2]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
template<typename Perm , typename = std::enable_if_t< TiledArray::detail::is_permutation_v<Perm>>>
|
inline |
◆ operator=() [1/2]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
default |
◆ operator=() [2/2]
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
default |
Member Data Documentation
◆ is_consumable
template<typename Result , typename Arg , typename Scalar , bool Consumable>
|
staticconstexpr |
The documentation for this class was generated from the following file:
- TiledArray/tile_op/shift.h