ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::matrix Namespace Reference

Data Structures

class  IndexIterator
 Class to iterate Callable with Index of matrix. More...
 
struct  Reader
 Class reads values of matrix The interface class. More...
 
struct  Shape
 Structure to have values of dimensions for matrix. More...
 

Functions

IndexIterator iterate (const Shape &shape)
 Create an object of IndexIterator for matrix.
 
template<typename Callable >
IndexIteratoroperator<< (IndexIterator &&it, Callable cb)
 Call a function iterated using IndexIterator of matrix Overloaded operator<<.
 

Function Documentation

◆ iterate()

IndexIterator nnfw::misc::matrix::iterate ( const Shape shape)
inline

Create an object of IndexIterator for matrix.

Parameters
[in]Shapereference of matrix
Returns
Created IndexIterator object

Definition at line 81 of file IndexIterator.h.

81{ return IndexIterator{shape}; }
Class to iterate Callable with Index of matrix.

◆ operator<<()

template<typename Callable >
IndexIterator & nnfw::misc::matrix::operator<< ( IndexIterator &&  it,
Callable  cb 
)

Call a function iterated using IndexIterator of matrix Overloaded operator<<.

Parameters
[in]itAn IndexIterator reference
[in]cbA callback function
Returns
created IndexIterator object

Definition at line 90 of file IndexIterator.h.

91{
92 return it.iter(cb);
93}
IndexIterator & iter(Callable cb)
Call a function iterated.

References nnfw::misc::matrix::IndexIterator::iter().