
První zpráva
$$ e = \sum_{n=0}^\infty \frac{1}{n!} $$ Toto je varování. Toto je poznámka. Toto je užitečný tip! Obávej se tohohle. Extrakt z kódu Hry života v Pythonu @cuda.jit def update_board(gridInput:np.ndarray, gridOutput:np.ndarray): x,y = cuda.grid(2) if x < gridInput.shape[0] and y < gridInput.shape[1]: z = 0 val = 0 # go through all the neigbouring cells and add 1 for each life while z < VECTORS.shape[0]: xZ = x + VECTORS[z,0] yZ = y + VECTORS[z,1] val += gridInput[xZ,yZ] z+=1 # different scenarios for cases with and without life if gridInput[x,y]: # will it survive?...