|
ADS
Algorithms and Data Structures
|
The graphs and the sparse matrices of ADS as matrices of SuiteSparse. More...
Files | |
| file | ADS/interop/graphblas/GraphBLAS.h |
| The graphs and the sparse matrices of ADS as matrices of SuiteSparse:GraphBLAS (https://github.com/DrTimothyAldenDavis/GraphBLAS), so that the operations of GraphBLAS, and the algorithms of LAGraph written on them, run on the structures of ADS, beyond the book: | |
Classes | |
| class | ADS::graphblas::Matrix |
| the owner of a GrB_Matrix, freed at its end More... | |
Macros | |
| #define | ADS_GRB_TYPED(F, T, ...) |
| the call of the typed function of GraphBLAS F##_< T >, for the type T of the values of the arguments | |
Functions | |
| void | ADS::graphblas::check (GrB_Info r, const char *what) |
| throws if \( r \) is not a success of GraphBLAS, naming what | |
| template<class T> | |
| GrB_Type | ADS::graphblas::type (void) |
| the type of GraphBLAS of the numbers T: GrB_BOOL, the integers of 8 to 64 bits with or without sign, GrB_FP32 and GrB_FP64 | |
| template<std::integral I> | |
| GrB_Type | ADS::graphblas::indexType (void) |
| the type of GraphBLAS of the indices I, not negative, read by their size | |
| template<CsrArrays G> | |
| Matrix | ADS::graphblas::view (const G &g) |
| the \( n \times n \) matrix of the arcs of \( g \) by rows, its offsets, heads and weights read in place, iso-valued true if \( g \) is unweighted; a graph whose rows are not known to be sorted (an ArrayGraph, in the order of its edges) is checked in \( O( n + a ) \) time, and copied by copy() if the heads of some row do not increase, since GraphBLAS reads the columns of a row of a matrix that is not jumbled in increasing order | |
| template<class T, class I, class P> | |
| Matrix | ADS::graphblas::view (const BasicCsrMatrix< T, I, P > &A) |
| the \( m \times n \) matrix \( A \) by rows, its offsets, columns and values read in place | |
| template<class G> requires ( detail::ArcRows< G > ) | |
| Matrix | ADS::graphblas::copy (const G &g) |
| the \( n \times n \) matrix of the arcs of \( g \), copied by GrB_Matrix_build() (for the layouts that view() does not take), of the weights of \( g \), or true if it is unweighted | |
| template<class T, class I = std::uint32_t, class P = ADS::detail::CsrOffset< I >> | |
| BasicCsrMatrix< T, I, P > | ADS::graphblas::toCsr (GrB_Matrix A) |
| the matrix \( A \) of GraphBLAS copied into a BasicCsrMatrix of the values T, the columns I and the offsets P, by its triplets | |
The graphs and the sparse matrices of ADS as matrices of SuiteSparse.
| #define ADS_GRB_TYPED | ( | F, | |
| T, | |||
| ... ) |
the call of the typed function of GraphBLAS F##_< T >, for the type T of the values of the arguments
|
inline |
throws if \( r \) is not a success of GraphBLAS, naming what
|
nodiscard |
the \( n \times n \) matrix of the arcs of \( g \), copied by GrB_Matrix_build() (for the layouts that view() does not take), of the weights of \( g \), or true if it is unweighted
|
nodiscard |
the type of GraphBLAS of the indices I, not negative, read by their size
|
nodiscard |
the matrix \( A \) of GraphBLAS copied into a BasicCsrMatrix of the values T, the columns I and the offsets P, by its triplets
|
nodiscard |
the type of GraphBLAS of the numbers T: GrB_BOOL, the integers of 8 to 64 bits with or without sign, GrB_FP32 and GrB_FP64
|
nodiscard |
the \( m \times n \) matrix \( A \) by rows, its offsets, columns and values read in place
|
nodiscard |
the \( n \times n \) matrix of the arcs of \( g \) by rows, its offsets, heads and weights read in place, iso-valued true if \( g \) is unweighted; a graph whose rows are not known to be sorted (an ArrayGraph, in the order of its edges) is checked in \( O( n + a ) \) time, and copied by copy() if the heads of some row do not increase, since GraphBLAS reads the columns of a row of a matrix that is not jumbled in increasing order