176 questions
1
vote
1
answer
41
views
terminals don't open in the new workspace, instead open in current workspace | i3 window tiling [closed]
i create a script that is supposed to create a new workspace and that workspace launch four terminal each in given position with a command ran in it.
this is the script.sh
#!/usr/bin/env bash
WS='9:...
6
votes
1
answer
532
views
How can I generalize Diamond Tiling to higher dimensions?
Background
This is a real programming problem I've encountered in my attempt to optimize a PDE solver. Before I can ask the question in an understandable way, I have to first introduce some background ...
0
votes
0
answers
105
views
Solving tiling problem in battleships game
I have a small pet project. It is a simple game but there are some interesting engineering challenges in it. One of them is to find out if the ships combination makes sense.
So, as you can see players ...
2
votes
3
answers
1k
views
How can I get Variety working on Hyprland?
I'm trying to use Variety in Hyprland, but I haven't found an article or a Question anywhere on the web.
Can anyone tell me how I can integrate it in my hyprland.conf?
0
votes
1
answer
94
views
Tile size for asymmetric matrix
When I transpose an matrix of 64x64, I use a tile size of 256/64=4 and with a 32x32 I use an tile size of 256/32=8. How do I calculate the tile size of an asymmetric matrix? A tile size of 16 gives me ...
1
vote
1
answer
75
views
Finding the mean point in tiling space?
I have a collection of points in tiling 2D space (I believe its called toroidal geometry/space), and I want to find their mean:
The basic approach would be to just take their mean 'locally' where ...
1
vote
2
answers
88
views
Fill in the free space in the last block
I'm trying to do a simple tiling in html/css.
When you click on a square, it disappears and the square next to it fills the remaining space. The problem is that the last square that remains is on the ...
4
votes
2
answers
1k
views
Multilevel tiling for cache sensitive matrix multiplication
I am writing my own GeMM subroutine for fun. I have managed to achieve a tiled version over the L1 cache with an AVX256 kernel. I am aware there are some loop invariants I could be be hoisting out of ...
0
votes
0
answers
262
views
How do I apply loop tiling?
I am trying to apply code tiling but I dont really understand it, I had seen things about inner loop but I dont have any inner loops. Can anyone explain it to me? I am using the gcc compiler.
#...
1
vote
1
answer
5k
views
How can I make this PyTorch tensor (B, C, H, W) tiling & blending code simpler and more efficient?
So, I wrote the code below many months ago, and it's worked pretty well. Though I am struggling on how I can simplify it and make it more efficient.
The functions below split an image tensor (B, C, H, ...
1
vote
2
answers
1k
views
i3 assign number to window and move to number
I am totally new to i3 and am coming from tilix. So far I love i3. In tilix I used to jump from windows to window using the $mod+numberOfWindow. But I can't find out how to
assign each window a ...
0
votes
1
answer
564
views
THREE.JS: Quadtree terrain glitch
I have a very simple code for visualising geo terrain from tiles of different zoom levels, based on pseudo-quadtree algorithm.
Due to crossDomain restrictions and StackOverflow limits I am publishing ...
2
votes
1
answer
81
views
Calculating complexity for recursive algorithm with codependent relations
I wrote a program recently which was based on a recursive algorithm, solving for the number of ways to tile a 3xn board with 2x1 dominoes:
F(n) = F(n-2) + 2*G(n-1)
G(n) = G(n-2) + F(n-1)
F(...
0
votes
1
answer
750
views
Resize image and create 3x3 tiles with ImageMagick
I managed to make tiles with ImageMagick like this:
-size 900x900 tile:D:\tile.jpg D:\tiles.jpg
But i want to resize the image before the tiling (300*300px) - and then maybe afterwards apply a ...
3
votes
2
answers
1k
views
How to generate a domino-tiling of a square?
Short description:
I'm trying to generate tilings of a square with dominoes or in other words with 2x1 and 1x2 tiles.
Sometimes my algorithm puts a vertical tile in a way, that makes it impossible ...
1
vote
0
answers
201
views
algorithm for tiling 2D array with polyminos
It is different from generating polyminos, but it is NP-hard problem too.
I'm given polyminos with size 4, 5, 6, as an array.
'F':{'num':0b011110010,'width':3} #will be mutated to polymino as
((0,1,...
0
votes
2
answers
812
views
How to add tiling and transparency to this shader?
I don't know much about shaders, so I am struggling to add transparency to a shader I already use.
So basically I used the shader below to display 360 videos on a sphere. It flipps the normals so it ...
2
votes
0
answers
310
views
Unity apply same texture on boxes of different sizes
I'm working with Unity and C# making a platform game, i mostly used cubes/boxes of different scales to build the level and now i have to apply the texture, i played with the tiling but the texture ...
0
votes
2
answers
969
views
Dividing a rectangle into smaller, equal, integer rectangles/tiles of maximum size
I need to create screenshots with an extremely large resolution. Because the resolution is larger than my renderer supports, they need to be split up into smaller resolutions and stitched together ...
0
votes
0
answers
391
views
Manual cache blocking and Intel Optimization Flags
I'm trying to test the effectiveness of a manual cache blocking or loop tiling optimization that has been applied on some Fortran scientific code routine. Concerning Tile Size Selection, I used an ...
42
votes
4
answers
39k
views
Mathematically producing sphere-shaped hexagonal grid
I am trying to create a shape similar to this, hexagons with 12 pentagons, at an arbitrary size.
(Image Source)
The only thing is, I have absolutely no idea what kind of code would be needed to ...
4
votes
1
answer
2k
views
No performance gain with transpose of large 2d Matrix using Loop tiling
Transposing global 2D Square Matrix/Array of size 1 gb with tiling approach(Cache Aware) has no performance gain in single threaded execution over Normal transpose method. Not discussing the transpose ...
2
votes
0
answers
282
views
How can I use binary_fill_holes for a tiled image?
My question is simple.
I have a large binary image, and I would like to fill the holes in the objects. Iv'e tried using binary_fill_holes, but since the image is so big, I have to tile it, so only a ...
10
votes
4
answers
753
views
How to break an array into blocks
I have an array that represents points in a cuboid. It is a one dimensional array, which uses the following indexing function to realise the 3 dimensions:
int getCellIndex(int ix, int iy, int iz) {
...
3
votes
1
answer
135
views
Creating a tiled multi-dimensional array while removing the sub element of the I'th index of axis0?
I was trying to tile an array where each index is multi-diminsional.
I then remove the i'th sub element from each index.
For example, starting with this array:
>>> a = np.array([[ 1. ...