3#ifndef TETL_LINALG_BLAS1_SWAP_ELEMENTS_HPP
4#define TETL_LINALG_BLAS1_SWAP_ELEMENTS_HPP
14template <inout_
object InOutObj1, inout_
object InOutObj2>
15 requires(InOutObj1::rank() == InOutObj1::rank())
20 using size_type = detail::common_size_type_t<InOutObj1, InOutObj2>;
22 if constexpr (InOutObj1::rank() == 1) {
28 static_assert(InOutObj1::rank() == 2);
32 swap(x(i, j), y(i, j));
#define TETL_PRECONDITION(...)
Definition check.hpp:16
constexpr auto swap_elements(InOutObj1 x, InOutObj2 y) -> void
Definition blas1_swap_elements.hpp:16
constexpr auto cmp_less(T t, U u) noexcept -> bool
Compare the values of two integers t and u. Unlike builtin comparison operators, negative signed inte...
Definition cmp_less.hpp:21
Definition accessor_conjugate.hpp:12
auto swap(inplace_function< R(Args...), Capacity, Alignment > &lhs, inplace_function< R(Args...), Capacity, Alignment > &rhs) noexcept -> void
Overloads the etl::swap algorithm for etl::inplace_function. Exchanges the state of lhs with that of ...
Definition inplace_function.hpp:249