class gpr::linalg::canonical::AlignedBuffer¶
Overview¶
Growable 64-byte aligned storage for packed tiles. More…
Detailed Documentation¶
Growable 64-byte aligned storage for packed tiles. A tile packed at an offset that is a multiple of eight doubles, with its row count as leading dimension, has the address alignment and layout of an AlignedTile, so a tile kernel reads it in place and rounds as it would on a copy.
Methods¶
static std::size_t padded(std::size_t count)
Doubles a packed tile of count entries occupies.
double* reserve(std::size_t count)
Storage for at least count doubles; contents are not preserved when the buffer grows.