5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_SWAP_ROWS_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_LINALG_SWAP_ROWS_HPP_
13#include "arene/base/stdlib_choice/enable_if.hpp"
24namespace swap_rows_detail {
47 constexpr auto operator()(Matrix matrix, IndexI row_index_i, IndexJ row_index_j)
const
49 auto row_i = row_view(matrix, row_index_i);
50 auto row_j = row_view(matrix, row_index_j);
52 if (row_index_i != row_index_j) {
53 swap_elements(row_i, row_j);
#define ARENE_CPP14_INLINE_VARIABLE(type, name)
Emulates C++17's inline variable declarations for function objects.
Definition cpp14_inline.hpp:69
Definition accumulate.hpp:37
constexpr bool is_nothrow_swappable_v
Trait query indicating if a type can be noexcept-swapped.
constexpr bool is_invocable_v
Determine if a functor type is invocable with the specified argument types.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
Definition accumulate.hpp:36
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41