Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Morpheus_Sort.hpp
1
24#ifndef MORPHEUS_SORT_HPP
25#define MORPHEUS_SORT_HPP
26
27#include <impl/Morpheus_Sort_Impl.hpp>
28
29namespace Morpheus {
30
31template <typename ExecSpace, typename Matrix>
32void sort_by_row_and_column(Matrix& mat,
33 typename Matrix::index_type min_row = 0,
34 typename Matrix::index_type max_row = 0,
35 typename Matrix::index_type min_col = 0,
36 typename Matrix::index_type max_col = 0) {
37 Impl::sort_by_row_and_column<ExecSpace>(mat, min_row, max_row, min_col,
38 max_col);
39}
40
41template <typename ExecSpace, typename Matrix>
42bool is_sorted(Matrix& mat) {
43 return Impl::is_sorted<ExecSpace>(mat);
44}
45
46} // namespace Morpheus
47
48#endif // MORPHEUS_SORT_HPP
Generic Morpheus interfaces.
Definition: dummy.cpp:24