[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix bug in outerproducts for tensormaps
Browse files Browse the repository at this point in the history
  • Loading branch information
romeric committed Mar 9, 2021
1 parent 26fc041 commit 5980b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fastor/tensor_algebra/outerproduct.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ dyadic(const AbstractTensor<Derived0,DIM0> &a, const AbstractTensor<Derived1,DIM
// }

template<typename AbstractTensorType0, typename AbstractTensorType1, typename ... AbstractTensorTypes,
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> >
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> = false >
FASTOR_INLINE
auto
outer(const AbstractTensorType0& a, const AbstractTensorType1& b, const AbstractTensorTypes& ... rest)
Expand All @@ -108,7 +108,7 @@ outer(const AbstractTensorType0& a, const AbstractTensorType1& b, const Abstract
}

template<typename AbstractTensorType0, typename AbstractTensorType1, typename ... AbstractTensorTypes,
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> >
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> = false >
FASTOR_INLINE
auto
dyadic(const AbstractTensorType0& a, const AbstractTensorType1& b, const AbstractTensorTypes& ... rest)
Expand Down

1 comment on commit 5980b41

@Bbllaaddee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
Works like a charm!

Please sign in to comment.