numpy

Type Alias Complex64

Source
pub type Complex64 = Complex<f64>;
Expand description

Alias for a Complex<f64>

Aliased Type§

struct Complex64 {
    pub re: f64,
    pub im: f64,
}

Fields§

§re: f64

Real portion of the complex number

§im: f64

Imaginary portion of the complex number

Trait Implementations§

Source§

impl Element for Complex64

Complex type with f64 components which maps to numpy.cdouble (numpy.complex128).

Source§

const IS_COPY: bool = true

Flag that indicates whether this type is trivially copyable. Read more
Source§

fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>

Returns the associated type descriptor (“dtype”) for the given element type.
Source§

fn clone_ref(&self, _py: Python<'_>) -> Complex64

Create a clone of the value while the GIL is guaranteed to be held.
Source§

fn vec_from_slice(_py: Python<'_>, slc: &[Complex64]) -> Vec<Complex64>

Create an owned copy of the slice while the GIL is guaranteed to be held. Read more
Source§

fn array_from_view<D>( _py: Python<'_>, view: ArrayView<'_, Complex64, D>, ) -> Array<Complex64, D>
where D: Dimension,

Create an owned copy of the array while the GIL is guaranteed to be held. Read more
Source§

fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>

👎Deprecated since 0.23.0: renamed to Element::get_dtype
Deprecated name for Element::get_dtype.