Skip to content

Commit

Permalink
relax Tensor(left,right,binaryelemeop,permutation) ctor constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Nov 30, 2023
1 parent 56b49a0 commit b75b1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TiledArray/tensor/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class Tensor {
/// \param perm The permutation that will be applied to the arguments
template <
typename T1, typename T2, typename Op, typename Perm,
typename std::enable_if<is_tensor<T1, T2>::value &&
typename std::enable_if<detail::is_nested_tensor<T1, T2>::value &&
detail::is_permutation_v<Perm>>::type* = nullptr>
Tensor(const T1& left, const T2& right, Op&& op, const Perm& perm)
: Tensor(outer(perm) * left.range(), 1, default_construct{false}) {
Expand Down

0 comments on commit b75b1fc

Please sign in to comment.