ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::graphblas Namespace Reference

Classes

class  Matrix
 the owner of a GrB_Matrix, freed at its end More...

Functions

void check (GrB_Info r, const char *what)
 throws if \( r \) is not a success of GraphBLAS, naming what
template<class T>
GrB_Type 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 indexType (void)
 the type of GraphBLAS of the indices I, not negative, read by their size
template<class G>
requires ( detail::ArcRows< G > )
Matrix 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<CsrArrays G>
Matrix 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 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 T, class I = std::uint32_t, class P = ADS::detail::CsrOffset< I >>
BasicCsrMatrix< T, I, P > 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