Utilities for handling input iterators.
More...
Go to the source code of this file.
|
| grb |
| The ALP/GraphBLAS namespace.
|
|
|
template<typename IterT > |
RC | check_input_coordinates (const IterT &it, const typename IterT::RowIndexType rows, const typename IterT::ColumnIndexType cols) |
| Checks whether the input iterator it stores valid row and column coordinates. More...
|
|
Utilities for handling input iterators.
- Author
- Alberto Scolari
- Date
- 20/06/2022
◆ check_input_coordinates()
RC grb::utils::check_input_coordinates |
( |
const IterT & |
it, |
|
|
const typename IterT::RowIndexType |
rows, |
|
|
const typename IterT::ColumnIndexType |
cols |
|
) |
| |
|
inline |
Checks whether the input iterator it stores valid row and column coordinates.
- Template Parameters
-
- Parameters
-
[in] | it | The given input iterator. |
[in] | rows | The number of matrix rows. |
[in] | cols | The number of matrix columns. |
- Returns
- grb::SUCCESS If the iterator row and column values (i.e.,
it.i()
it.j()
, respectively) are both within the given matrix boundaries.
-
grb::MISMATCH If the iterator row and column values are outside of the given bounds.