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

Function main

examples/acoustic_wave.rs:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2use std::f64::consts::*;
3
4fn main() {
5 set_device(0);
6 info();
7 acoustic_wave_simulation();
8}
9
10fn normalise(a: &Array<f32>) -> Array<f32> {
11 (a / (max_all(&abs(a)).0 as f32 * 2.0f32)) + 0.5f32

Callers

nothing calls this directly

Calls 3

set_deviceFunction · 0.85
infoFunction · 0.85
acoustic_wave_simulationFunction · 0.85

Tested by

no test coverage detected