pub type Complex32 = Complex<f32>;
Expand description
Alias for a Complex<f32>
Aliased Type§
struct Complex32 {
pub re: f32,
pub im: f32,
}
Fields§
§re: f32
Real portion of the complex number
im: f32
Imaginary portion of the complex number
Trait Implementations§
Source§impl Element for Complex32
Complex type with f32
components which maps to numpy.csingle
(numpy.complex64
).
impl Element for Complex32
Complex type with f32
components which maps to numpy.csingle
(numpy.complex64
).
Source§const IS_COPY: bool = true
const IS_COPY: bool = true
Flag that indicates whether this type is trivially copyable. Read more
Source§fn get_dtype(py: Python<'_>) -> Bound<'_, PyArrayDescr>
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<'_>) -> Complex32
fn clone_ref(&self, _py: Python<'_>) -> Complex32
Create a clone of the value while the GIL is guaranteed to be held.
Source§fn vec_from_slice(_py: Python<'_>, slc: &[Complex32]) -> Vec<Complex32>
fn vec_from_slice(_py: Python<'_>, slc: &[Complex32]) -> Vec<Complex32>
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<'_, Complex32, D>,
) -> Array<Complex32, D>where
D: Dimension,
fn array_from_view<D>(
_py: Python<'_>,
view: ArrayView<'_, Complex32, D>,
) -> Array<Complex32, 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>
fn get_dtype_bound(py: Python<'_>) -> Bound<'_, PyArrayDescr>
👎Deprecated since 0.23.0: renamed to
Element::get_dtype
Deprecated name for
Element::get_dtype
.