11 #ifndef COMPRESSED_BRICK_ITERATOR_H
12 #define COMPRESSED_BRICK_ITERATOR_H
19 template<
class T,
unsigned Dim>
25 template<
class T,
unsigned D1,
unsigned D2>
47 template<
class T,
unsigned Dim>
64 for (
unsigned d=0; d<
Dim; d++)
78 for (
unsigned d=0; d<
Dim; d++)
CompressedBrickIterator< T, D2 > permute(const CompressedBrickIterator< T, D1 > &, const NDIndex< D1 > &, const NDIndex< D2 > &)
constexpr double c
The velocity of light in m/s.
bool CanCompress(const T &) const
CompressedBrickIterator< T, 3 > permute(NDIndex< Dim > ¤t, NDIndex< 3 > &permuted) const
CompressedBrickIterator< T, 5 > permute(NDIndex< Dim > ¤t, NDIndex< 5 > &permuted) const
CompressedBrickIterator< T, 6 > permute(NDIndex< Dim > ¤t, NDIndex< 6 > &permuted) const
CompressedBrickIterator< T, 1 > permute(NDIndex< Dim > ¤t, NDIndex< 1 > &permuted) const
void SetStride(int d, int stride)
Message & getMessage(Message &m)
CompressedBrickIterator(const BrickIterator< T, Dim > &x, T &compressed)
CompressedBrickIterator< T, 4 > permute(NDIndex< Dim > ¤t, NDIndex< 4 > &permuted) const
CompressedBrickIterator(T *t, const vec< int, Dim > &v, T &compressed)
void SetCount(int d, int count)
CompressedBrickIterator(T *t, const NDIndex< Dim > &c, const NDIndex< Dim > &a, T &compressed)
CompressedBrickIterator()
Message & putMessage(Message &m, bool makecopy=true)
CompressedBrickIterator< T, 2 > permute(NDIndex< Dim > ¤t, NDIndex< 2 > &permuted) const
CompressedBrickIterator(T &t)
void SetCompressedData(T *newData)
T & GetCompressedData() const
const CompressedBrickIterator< T, Dim > & operator=(const CompressedBrickIterator< T, Dim > &rhs)
int GetStride(int d) const
bool IsCompressed() const