23#ifndef __NNFW_MISC_MATRIX_INDEX_ITERATOR_H__
24#define __NNFW_MISC_MATRIX_INDEX_ITERATOR_H__
58 for (uint32_t row = 0; row < _shape.
H; ++row)
60 for (uint32_t col = 0; col < _shape.
W; ++col)
Class to iterate Callable with Index of matrix.
IndexIterator(const Shape &shape)
Construct IndexIterator object with Shape of matrix.
IndexIterator & iter(Callable cb)
Call a function iterated.
IndexIterator & operator<<(IndexIterator &&it, Callable cb)
Call a function iterated using IndexIterator of matrix Overloaded operator<<.
IndexIterator iterate(const Shape &shape)
Create an object of IndexIterator for matrix.
This file contains Shape class for matrix.
Structure to have values of dimensions for matrix.