EleFits  4.0.0
A modern C++ API on top of CFitsIO

◆ isContiguous()

template<typename T , long n = 2>
template<long m = 2>
bool Euclid::Fits::Raster< T, n >::isContiguous ( const Region< n > &  region) const

Check whether a region is made of contiguous values in memory.

Template Parameters
mThe actual region dimension

A region is contiguous if and only if:

  • For i < m-1, front[i] = 0 and back[i] = -1;
  • For i > m, front[i] = back[i].