Program Listing for File neighbours.hpp

Return to documentation for file (src/neighbours.hpp)

/* This file is part of brille.

Copyright © 2019,2020 Greg Tucker <greg.tucker@stfc.ac.uk>

brille is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

brille is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with brille. If not, see <https://www.gnu.org/licenses/>.            */

#ifndef BRILLE_NEIGHBOURS_H_
#define BRILLE_NEIGHBOURS_H_
#include "array_latvec.hpp" // defines bArray
namespace brille {

bArray<int> make_relative_neighbour_indices(const int extent=1);
bArray<int> make_relative_neighbour_indices4(const int extent=1);

bArray<int> make_relative_neighbour_indices_prime(const int extent=1);

} // namespace brille
#endif