ALP User Documentation  0.8.preview
Algebraic Programming User Documentation
Namespaces | Functions
utils.hpp File Reference

Utilities for handling input iterators. More...

Go to the source code of this file.

Namespaces

 grb
 The ALP/GraphBLAS namespace.
 

Functions

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...
 

Detailed Description

Utilities for handling input iterators.

Author
Alberto Scolari
Date
20/06/2022

Function Documentation

◆ 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
IterTthe iterator type
Parameters
[in]itThe given input iterator.
[in]rowsThe number of matrix rows.
[in]colsThe 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.