ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::MatrixIndex Class Referencefinal

Matrix Index. More...

#include <MatrixIndex.h>

Public Member Functions

 MatrixIndex ()=default
 
const uint32_t & row (void) const
 
uint32_t & row (void)
 
const uint32_t & column (void) const
 
uint32_t & column (void)
 

Detailed Description

Matrix Index.

Matrix Index indicates an "element" in a given Matrix

Let us assume that there is a Matrix F and S denotes its shape (of MatrixShape type).

Then, any valid Matrix index I satisfies the following invariants:

  • 0 <= I.row() < S.height()
  • 0 <= I.column() < S.width()

Definition at line 36 of file MatrixIndex.h.

Constructor & Destructor Documentation

◆ MatrixIndex()

loco::MatrixIndex::MatrixIndex ( )
default

Member Function Documentation

◆ column() [1/2]

uint32_t & loco::MatrixIndex::column ( void  )
inline

Definition at line 46 of file MatrixIndex.h.

46{ return _column; }

◆ column() [2/2]

const uint32_t & loco::MatrixIndex::column ( void  ) const
inline

◆ row() [1/2]

uint32_t & loco::MatrixIndex::row ( void  )
inline

Definition at line 43 of file MatrixIndex.h.

43{ return _row; }

◆ row() [2/2]

const uint32_t & loco::MatrixIndex::row ( void  ) const
inline

The documentation for this class was generated from the following file: