1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00

move constants into red black

This commit is contained in:
Peter Boyle 2015-05-25 13:44:35 +01:00
parent 624c0ac3ef
commit 616f871735

View File

@ -4,6 +4,13 @@
namespace Grid { namespace Grid {
static const int CbRed =0;
static const int CbBlack=1;
static const int Even =CbRed;
static const int Odd =CbBlack;
static const int DaggerNo=0;
static const int DaggerYes=1;
// Specialise this for red black grids storing half the data like a chess board. // Specialise this for red black grids storing half the data like a chess board.
class GridRedBlackCartesian : public GridBase class GridRedBlackCartesian : public GridBase
{ {
@ -44,6 +51,9 @@ public:
return source_cb; return source_cb;
} }
}; };
GridRedBlackCartesian(GridBase *base) : GridRedBlackCartesian(base->_fdimensions,base->_simd_layout,base->_processors) {};
GridRedBlackCartesian(std::vector<int> &dimensions, GridRedBlackCartesian(std::vector<int> &dimensions,
std::vector<int> &simd_layout, std::vector<int> &simd_layout,
std::vector<int> &processor_grid ) : GridBase(processor_grid) std::vector<int> &processor_grid ) : GridBase(processor_grid)