28#include <gtest/gtest.h>
39constexpr double eps = 1e-12;
85 const std::array<double, 8> neighbours{1.0, 2.0, 3.0, 4.0,
92 const std::array<double, 8>
constant{2.0, 2.0, 2.0, 2.0,
105 const std::array<double, 8>
x_neighbours{-1.0, 0.0, 1.0,
116 const std::array<double, 8>
y_neighbours{-1.0, -1.0, -1.0,
130 auto m =
k.to_matrix();
150 const std::array<double, 2>
too_short{1.0, 2.0};
Fixed 2-D convolution kernels for continuous cellular automata.
Common typedefs and tag types for the Cellular Automata module.
Dense odd-sized 2-D convolution kernel.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
std::span< const T > Neighbor_View
Read-only view over a contiguous range of neighbour values.
Main namespace for Aleph-w library functions.
auto mean(const Container &data) -> std::decay_t< decltype(*std::begin(data))>
Compute the arithmetic mean.
FooMap m(5, fst_unit_pair_hash, snd_unit_pair_hash)