MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / main

Function main

examples/conway.rs:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use arrayfire::*;
2
3fn main() {
4 set_device(0);
5 info();
6 conways_game_of_life();
7}
8
9fn normalise(a: &Array<f32>) -> Array<f32> {
10 a / (max_all(&abs(a)).0 as f32)

Callers

nothing calls this directly

Calls 3

set_deviceFunction · 0.85
infoFunction · 0.85
conways_game_of_lifeFunction · 0.85

Tested by

no test coverage detected