gem5 v24.0.0.0
|
Provides a view of a horizontal slice of either a MatStore or a Tile. More...
#include <matrix.hh>
Public Member Functions | |
ElemType & | operator[] (size_t elem_idx) |
void | zero () |
Private Member Functions | |
HorizontalSlice (Container &cnt, size_t _startBytes, size_t _strideBytes, size_t idx) | |
Private Attributes | |
Container * | container |
size_t | index |
size_t | xElems |
size_t | yElems |
size_t | startElts |
size_t | strideElts |
Friends | |
template<size_t , size_t > | |
class | MatStore |
template<typename , typename > | |
class | Tile |
Provides a view of a horizontal slice of either a MatStore or a Tile.
Based on whether this view it is being used from the MatStore directly or from the Tile different parameters are used. Behind the scenes the parameters are used to stride through the (linear) backing store in order to return or maniplate the desired elements of the row/column.
ElemType | The type of element to use for the view. |
Container | The type of container being used as the backing store. |
FromTile | Set true if operating on an interleaved tile. |
|
inlineprivate |
|
inline |
Definition at line 193 of file matrix.hh.
References gem5::HorizontalSlice< ElemType, Container, FromTile >::container, gem5::HorizontalSlice< ElemType, Container, FromTile >::index, gem5::HorizontalSlice< ElemType, Container, FromTile >::startElts, gem5::HorizontalSlice< ElemType, Container, FromTile >::strideElts, and gem5::HorizontalSlice< ElemType, Container, FromTile >::xElems.
|
inline |
Definition at line 201 of file matrix.hh.
References gem5::ArmISA::i, and gem5::HorizontalSlice< ElemType, Container, FromTile >::xElems.
|
friend |
|
friend |
|
private |
Definition at line 157 of file matrix.hh.
Referenced by gem5::HorizontalSlice< ElemType, Container, FromTile >::HorizontalSlice(), and gem5::HorizontalSlice< ElemType, Container, FromTile >::operator[]().
|
private |
Definition at line 158 of file matrix.hh.
Referenced by gem5::HorizontalSlice< ElemType, Container, FromTile >::operator[]().
|
private |
Definition at line 161 of file matrix.hh.
Referenced by gem5::HorizontalSlice< ElemType, Container, FromTile >::operator[]().
|
private |
Definition at line 162 of file matrix.hh.
Referenced by gem5::HorizontalSlice< ElemType, Container, FromTile >::operator[]().
|
private |
|
private |
Definition at line 160 of file matrix.hh.
Referenced by gem5::HorizontalSlice< ElemType, Container, FromTile >::HorizontalSlice().