Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
use arrayfire::*;
2
3
fn main() {
4
set_device(0);
5
info();
6
conways_game_of_life();
7
}
8
9
fn normalise(a: &Array<f32>) -> Array<f32> {
10
a / (max_all(&abs(a)).0 as f32)
Callers
nothing calls this directly
Calls
3
set_device
Function · 0.85
info
Function · 0.85
conways_game_of_life
Function · 0.85
Tested by
no test coverage detected