MCPcopy Create free account
hub / github.com/PyO3/rust-numpy / mult

Function mult

examples/simple/src/lib.rs:30–32  ·  view source on GitHub ↗

example using a mutable borrow to modify an array in-place

(a: f64, mut x: ArrayViewMutD<'_, f64>)

Source from the content-addressed store, hash-verified

28
29 // example using a mutable borrow to modify an array in-place
30 fn mult(a: f64, mut x: ArrayViewMutD<'_, f64>) {
31 x *= a;
32 }
33
34 // example using complex numbers
35 fn conj(x: ArrayViewD<'_, Complex64>) -> ArrayD<Complex64> {

Callers 2

mult_pyFunction · 0.85
test_multFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_multFunction · 0.68