- /
-
random cut in a d-dimensional checkerboard
on 5 Oct 2021
- 6
- 119
- 0
- 0
- 205
N = 2e3;
h = 1e-1;
[X,Y] = meshgrid(linspace(0,1,N));
d = 13;
offset = h*rand(1,d);
tmp = randn(d,d);
[V,~] = eig(tmp+tmp');
xr = [X(:) Y(:) zeros(N*N,d-2)]*V+offset;
C = prod((-1).^floor(xr ./h),2);
imshow(reshape(C,N,N));