Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
10
fn normalise(a: &Array<f32>) -> Array<f32> {
11
(a / (max_all(&abs(a)).0 as f32 * 2.0f32)) + 0.5f32
12
}
13
14
fn acoustic_wave_simulation() {
15
// Speed of sound
Callers
1
acoustic_wave_simulation
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected