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

Function conj_py

examples/simple/src/lib.rs:76–81  ·  view source on GitHub ↗
(
        py: Python<'py>,
        x: PyReadonlyArrayDyn<'py, Complex64>,
    )

Source from the content-addressed store, hash-verified

74 // wrapper of `conj`
75 #[pyfunction(name = "conj")]
76 fn conj_py<'py>(
77 py: Python<'py>,
78 x: PyReadonlyArrayDyn<'py, Complex64>,
79 ) -> Bound<'py, PyArrayDyn<Complex64>> {
80 conj(x.as_array()).into_pyarray(py)
81 }
82
83 // example of how to extract an array from a dictionary
84 #[pyfunction]

Callers

nothing calls this directly

Calls 3

conjFunction · 0.85
into_pyarrayMethod · 0.80
as_arrayMethod · 0.45

Tested by

no test coverage detected