Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/arrayfire/arrayfire-rust
/ helper
Function
helper
examples/unified.rs:4–11 ·
view source on GitHub ↗
(dims: Dim4)
Source
from the content-addressed store, hash-verified
2
3
#[cfg(op_assign)]
4
fn helper(dims: Dim4) {
5
let mut a = randu::<f32>(dims);
6
let b = randu::<f32>(dims);
7
print(&a);
8
print(&b);
9
a += b;
10
print(&a);
11
}
12
13
#[cfg(not(op_assign))]
14
fn helper(dims: Dim4) {
Callers
1
test_backend
Function · 0.85
Calls
1
print
Function · 0.85
Tested by
1
test_backend
Function · 0.68