subt.h
decltype(auto) subt(const Tile< Left > &left, const Tile< Right > &right)
Subtract tile arguments.
Definition: tile.h:879
std::enable_if<!TiledArray::detail::is_permutation_v< Perm >, TiledArray::Range >::type permute(const TiledArray::Range &r, const Perm &p)
Definition: btas.h:803
Subt< Result, Left, Right, LeftConsumable, RightConsumable > Subt_
Definition: subt.h:55
Tile< Result > & scale_to(Tile< Result > &result, const Scalar factor)
Scale to the result tile.
Definition: tile.h:1204
result_type operator()(L &&left, R &&right, const Perm &perm) const
Scale-subtract-and-permute operator.
Definition: subt.h:357
result_type consume_left(left_type &left, R &&right) const
Subtract right to left and scale the result.
Definition: subt.h:387
void permute(InputOp &&input_op, OutputOp &&output_op, Result &result, const Perm &perm, const Arg0 &arg0, const Args &... args)
Construct a permuted tensor copy.
Definition: permute.h:117
static constexpr bool right_is_consumable
Definition: subt.h:249
static constexpr bool left_is_consumable
Definition: subt.h:247
ScalSubt(ScalSubt_ &&)=default
DistArray< Tile, Policy > clone(const DistArray< Tile, Policy > &arg)
Create a deep copy of an array.
Definition: clone.h:43
result_type operator()(L &&left, R &&right, const Perm &perm) const
Subtract-and-permute operator.
Definition: subt.h:158
ScalSubt(const ScalSubt_ &)=default
ScalSubt_ & operator=(const ScalSubt_ &)=default
static constexpr bool right_is_consumable
Indicates whether it is possible to consume the right tile.
Definition: subt.h:64
~ScalSubt()=default
decltype(auto) scale(const Tile< Arg > &arg, const Scalar factor)
Scalar the tile argument.
Definition: tile.h:1174
ScalSubt< Result, Left, Right, Scalar, LeftConsumable, RightConsumable > ScalSubt_
This class type.
Definition: subt.h:241
Definition: array_impl.cpp:28
ScalSubt_ & operator=(ScalSubt_ &&)=default
result_type consume_left(left_type &left, R &&right) const
Subtract right to left.
Definition: subt.h:188
Tile< Result > & subt_to(Tile< Result > &result, const Tile< Arg > &arg)
Subtract from the result tile.
Definition: tile.h:972
static constexpr bool left_is_consumable
Indicates whether it is possible to consume the left tile.
Definition: subt.h:61
result_type consume_right(L &&left, right_type &right) const
Subtract left to right and scale the result.
Definition: subt.h:407
result_type consume_right(L &&left, right_type &right) const
Subtract left to right.
Definition: subt.h:208