MCPcopy 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)]
4fn 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))]
14fn helper(dims: Dim4) {

Callers 1

test_backendFunction · 0.85

Calls 1

printFunction · 0.85

Tested by 1

test_backendFunction · 0.68