class gpr::linalg::canonical::AlignedBlockCache

64-byte aligned blocks reused by the tile kernels of one thread. A tile copy is taken at every kernel call, and allocating each one costs about as much as the arithmetic of a small tile, so released blocks return here and the next copy of at most that size reuses one.

#include <gpr/linalg/CanonicalTriangular.h>
 
class AlignedBlockCache {
public:
    // methods
 
    static double* acquire(std::size_t bytes);
    static void release(double* storage, std::size_t bytes);
 
private:
    // construction
 
    ~AlignedBlockCache();
};