guanaqo develop
Utilities for scientific software
Loading...
Searching...
No Matches
guanaqo::linalg Namespace Reference

Namespaces

namespace  sparsity
namespace  detail

Classes

struct  MatrixView
 Non-owning view of dense and various formats of sparse matrix. More...
struct  Sparsity
 Stores any of the supported sparsity patterns. More...

Typedefs

using index_t = std::ptrdiff_t
using length_t = std::ptrdiff_t

Functions

void convert_triplets_to_ccs (const auto &rows, const auto &cols, auto &&inner_idx, auto &&outer_ptr, auto idx_0=0)
template<class... Ts>
void sort_triplets (Ts &&...triplets)
 Sort the (row, column, value) triplets, by column index first, then row.
template<class... Ts>
void sort_triplets_col (Ts &&...triplets)
 Sort the (row, column, value) triplets by column index.
template<class Outer, class... Inners>
void sort_rows_csc (const Outer &outer_ptr, Inners &&...inners)
 Given a sparse compressed-column storage matrix, sort all row indices within each column.
template<class... Ts>
bool check_uniqueness_triplets (Ts &&...triplets)
 Check that no two entries with the same row and column index exist in the given sparse coordinate list matrix.
template<class Outer, class Inner>
bool check_uniqueness_csc (const Outer &outer_ptr, const Inner inner)
 Check that no two entries with the same row and column index exist in the given sparse compressed-column storage matrix.