class gpr::linalg::canonical::AlignedBuffer

Overview

Growable 64-byte aligned storage for packed tiles. More…

#include <gpr/linalg/CanonicalTriangular.h>
 
class AlignedBuffer {
public:
    // structs
 
    struct Free;
 
    // methods
 
    static std::size_t padded(std::size_t count);
    const double* data() const;
    double* reserve(std::size_t count);
};

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.