.. index:: pair: class; gpr::linalg::canonical::AlignedBuffer .. _doxid-classgpr_1_1linalg_1_1canonical_1_1_aligned_buffer: class gpr::linalg::canonical::AlignedBuffer =========================================== .. toctree:: :hidden: struct_gpr_linalg_canonical_AlignedBuffer_Free.rst Overview ~~~~~~~~ Growable 64-byte aligned storage for packed tiles. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class AlignedBuffer { public: // structs struct :ref:`Free`; // methods static std::size_t :ref:`padded`(std::size_t count); const double* :target:`data`() const; double* :ref:`reserve`(std::size_t count); }; .. _details-classgpr_1_1linalg_1_1canonical_1_1_aligned_buffer: 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 :ref:`AlignedTile `, so a tile kernel reads it in place and rounds as it would on a copy. Methods ------- .. index:: pair: function; padded .. _doxid-classgpr_1_1linalg_1_1canonical_1_1_aligned_buffer_1acf1d4070c4f6fe34d9884e08e7ddc597: .. ref-code-block:: cpp :class: doxyrest-title-code-block static std::size_t padded(std::size_t count) Doubles a packed tile of count entries occupies. .. index:: pair: function; reserve .. _doxid-classgpr_1_1linalg_1_1canonical_1_1_aligned_buffer_1a7649f87f0ab134b0c95265bc4b909f6d: .. ref-code-block:: cpp :class: doxyrest-title-code-block double* reserve(std::size_t count) Storage for at least count doubles; contents are not preserved when the buffer grows.