27 #ifndef _H_GRB_MATRIX_BASE 28 #define _H_GRB_MATRIX_BASE 118 std::forward_iterator_tag,
119 std::pair< std::pair< const size_t, const size_t >, const D >,
157 return std::pair< const size_t, const D >();
206 Matrix(
const size_t rows,
const size_t columns,
const size_t nz ) {
227 Matrix(
const size_t rows,
const size_t columns ) {
305 *
this = std::move( other );
390 const_iterator
end()
const {}
396 #endif // end _H_GRB_MATRIX_BASE Defines the ALP error codes.
unsigned int RowIndexType
What data type should be used to store row indices.
Definition: base/config.hpp:436
This file contains a register of all backends that are either implemented, under implementation,...
An ALP/GraphBLAS matrix.
Definition: matrix.hpp:72
D value_type
The value type of elements stored in this matrix.
Definition: matrix.hpp:180
Matrix(const size_t rows, const size_t columns)
ALP/GraphBLAS matrix constructor that sets a default initial capacity.
Definition: matrix.hpp:227
A standard iterator for an ALP/GraphBLAS matrix.
Definition: matrix.hpp:117
~Matrix()
Matrix destructor.
Definition: matrix.hpp:322
const_iterator cbegin() const
Provides the only mechanism to extract data from a GraphBLAS matrix.
Definition: matrix.hpp:350
const_iterator & operator++()
Advances the position of this iterator by one.
Definition: matrix.hpp:173
const_iterator cend() const
Indicates the end to the elements in this container.
Definition: matrix.hpp:381
self_type & operator=(self_type &&other) noexcept
Move-assignment.
Definition: matrix.hpp:304
const_iterator begin() const
Same as cbegin().
Definition: matrix.hpp:359
unsigned int ColIndexType
What data type should be used to store column indices.
Definition: base/config.hpp:449
std::pair< const size_t, const D > operator*() const
Dereferences the current position of this iterator.
Definition: matrix.hpp:156
Defines all ALP/GraphBLAS descriptors.
Matrix< D, implementation, RowIndexType, ColIndexType, NonzeroIndexType > self_type
The type of this container.
Definition: matrix.hpp:80
const_iterator end() const
Same as cend().
Definition: matrix.hpp:390
Backend
A collection of all backends.
Definition: backends.hpp:49
The ALP/GraphBLAS namespace.
Definition: graphblas.hpp:477
Matrix(const Matrix< D, implementation, RowIndexType, ColIndexType, NonzeroIndexType > &other)
Copy constructor.
Definition: matrix.hpp:261
Matrix(const size_t rows, const size_t columns, const size_t nz)
ALP/GraphBLAS matrix constructor that sets an initial capacity.
Definition: matrix.hpp:206
size_t NonzeroIndexType
What data type should be used to refer to an array containing nonzeroes.
Definition: base/config.hpp:462
bool operator!=(const const_iterator &other) const
Definition: matrix.hpp:139
bool operator==(const const_iterator &other) const
Standard equals operator.
Definition: matrix.hpp:131
Provides a set of standard binary operators.
Matrix(self_type &&other)
Move constructor.
Definition: matrix.hpp:284