Skip to content

Commit 5980b41

Browse files
committed
Fix bug in outerproducts for tensormaps
1 parent 26fc041 commit 5980b41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Fastor/tensor_algebra/outerproduct.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dyadic(const AbstractTensor<Derived0,DIM0> &a, const AbstractTensor<Derived1,DIM
9898
// }
9999

100100
template<typename AbstractTensorType0, typename AbstractTensorType1, typename ... AbstractTensorTypes,
101-
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> >
101+
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> = false >
102102
FASTOR_INLINE
103103
auto
104104
outer(const AbstractTensorType0& a, const AbstractTensorType1& b, const AbstractTensorTypes& ... rest)
@@ -108,7 +108,7 @@ outer(const AbstractTensorType0& a, const AbstractTensorType1& b, const Abstract
108108
}
109109

110110
template<typename AbstractTensorType0, typename AbstractTensorType1, typename ... AbstractTensorTypes,
111-
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> >
111+
enable_if_t_<is_greater_equal_v_<sizeof...(AbstractTensorTypes),1>,bool> = false >
112112
FASTOR_INLINE
113113
auto
114114
dyadic(const AbstractTensorType0& a, const AbstractTensorType1& b, const AbstractTensorTypes& ... rest)

0 commit comments

Comments
 (0)