diff --git a/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/strides.hpp b/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/strides.hpp index 53de553bb..c4157684d 100644 --- a/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/strides.hpp +++ b/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/strides.hpp @@ -211,8 +211,8 @@ namespace detail { * @param[in] w stride vector of length p * @returns relative memory location depending on \c i and \c w */ -BOOST_UBLAS_INLINE template +BOOST_UBLAS_INLINE auto access(std::vector const& i, basic_strides const& w) { const auto p = i.size(); @@ -231,8 +231,8 @@ auto access(std::vector const& i, basic_strides +BOOST_UBLAS_INLINE auto access(std::size_t sum, basic_strides const& w, std::size_t i, size_types ... is) { sum+=i*w[r]; diff --git a/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/tensor.hpp b/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/tensor.hpp index ea4521c29..6a64630f3 100644 --- a/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/tensor.hpp +++ b/downstream/libs/numeric/ublas/include/boost/numeric/ublas/tensor/tensor.hpp @@ -329,8 +329,8 @@ class tensor: * * @param other tensor with a different layout to be copied. */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE tensor (const tensor &other) : tensor_expression_type () , extents_ (other.extents()) @@ -351,8 +351,8 @@ class tensor: * * @param expr tensor expression */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE tensor (const tensor_expression_type &expr) : tensor_expression_type () , extents_ ( detail::retrieve_extents(expr) ) @@ -373,8 +373,8 @@ class tensor: * * @param expr matrix expression */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE tensor (const matrix_expression_type &expr) : tensor( matrix_type ( expr ) ) { @@ -389,8 +389,8 @@ class tensor: * * @param expr vector expression */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE tensor (const vector_expression_type &expr) : tensor( vector_type ( expr ) ) { @@ -404,8 +404,8 @@ class tensor: * * @param expr expression that is evaluated. */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE tensor &operator = (const tensor_expression_type &expr) { detail::eval(*this, expr); @@ -532,8 +532,8 @@ class tensor: * @param i zero-based index where 0 <= i < this->size() if sizeof...(is) == 0, else 0<= i < this->size(0) * @param is zero-based indices where 0 <= is[r] < this->size(r) where 0 < r < this->rank() */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE reference at (size_type i, size_types ... is) { if constexpr (sizeof...(is) == 0) return this->data_[i]; @@ -579,8 +579,8 @@ class tensor: * @param i placeholder * @param is zero-based indices where 0 <= is[r] < this->size(r) where 0 < r < this->rank() */ - BOOST_UBLAS_INLINE template + BOOST_UBLAS_INLINE decltype(auto) operator() (index::index_type p, index_types ... ps) const { constexpr auto N = sizeof...(ps)+1;