Skip to content

num::cartesian_index_space_2d

Defined in header <core/index_space.hpp>

template <class G>
concept cartesian_index_space_2d =
    square_extent_2d<G> && requires(const G &g, int i, int j) {
      { g.flat(i, j) } -> std::convertible_to<int>;
    };

Square index space that numbers its sites: \((i, j) \mapsto \mathrm{flat}(i, j)\).