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

Function conj

examples/simple/src/lib.rs:35–37  ·  view source on GitHub ↗

example using complex numbers

(x: ArrayViewD<'_, Complex64>)

Source from the content-addressed store, hash-verified

33
34 // example using complex numbers
35 fn conj(x: ArrayViewD<'_, Complex64>) -> ArrayD<Complex64> {
36 x.map(|c| c.conj())
37 }
38
39 // example using generics
40 fn generic_add<T: Copy + Add<Output = T>>(

Callers 2

conj_pyFunction · 0.85
test_conjFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_conjFunction · 0.68