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

Function normalise

examples/acoustic_wave.rs:10–12  ·  view source on GitHub ↗
(a: &Array<f32>)

Source from the content-addressed store, hash-verified

8}
9
10fn normalise(a: &Array<f32>) -> Array<f32> {
11 (a / (max_all(&abs(a)).0 as f32 * 2.0f32)) + 0.5f32
12}
13
14fn acoustic_wave_simulation() {
15 // Speed of sound

Callers 1

acoustic_wave_simulationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected