#[repr(C)]
pub struct c64 { pub re: f64, pub im: f64, }

Fields§

§re: f64§im: f64

Implementations§

source§

impl c64

source

pub fn new(re: f64, im: f64) -> Self

Trait Implementations§

source§

impl Add<c64> for c64

§

type Output = c64

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl Add<c64> for f64

§

type Output = c64

The resulting type after applying the + operator.
source§

fn add(self, rhs: c64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<f64> for c64

§

type Output = c64

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
source§

impl Clone for c64

source§

fn clone(&self) -> c64

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ComplexField for c64

§

type Real = f64

source§

fn from_f64(value: f64) -> Self

Converts value from f64 to Self.
The conversion may be lossy when converting to a type with less precision.
source§

fn add(&self, rhs: &Self) -> Self

Returns self + rhs.
source§

fn sub(&self, rhs: &Self) -> Self

Returns self - rhs.
source§

fn mul(&self, rhs: &Self) -> Self

Returns self * rhs.
source§

fn neg(&self) -> Self

Returns -self.
source§

fn inv(&self) -> Self

Returns 1.0/self.
source§

fn conj(&self) -> Self

Returns conjugate(self).
source§

fn sqrt(&self) -> Self

Returns the square root of self.
source§

fn scale_real(&self, rhs: &Self::Real) -> Self

Returns the input, scaled by rhs.
source§

fn scale_power_of_two(&self, rhs: &Self::Real) -> Self

Returns the input, scaled by rhs.
source§

fn score(&self) -> Self::Real

Returns either the norm or squared norm of the number. Read more
source§

fn abs(&self) -> Self::Real

Returns the absolute value of self.
source§

fn abs2(&self) -> Self::Real

Returns the squared absolute value of self.
source§

fn nan() -> Self

Returns a NaN value.
source§

fn from_real(real: Self::Real) -> Self

Returns a complex number whose real part is equal to real, and a zero imaginary part.
source§

fn real(&self) -> Self::Real

Returns the real part.
source§

fn imag(&self) -> Self::Real

Returns the imaginary part.
source§

fn zero() -> Self

Returns 0.0.
source§

fn one() -> Self

Returns 1.0.
source§

fn slice_as_simd<S: Simd>( slice: &[Self::Unit] ) -> (&[Self::SimdUnit<S>], &[Self::Unit])

source§

fn slice_as_mut_simd<S: Simd>( slice: &mut [Self::Unit] ) -> (&mut [Self::SimdUnit<S>], &mut [Self::Unit])

source§

fn partial_load_last_unit<S: Simd>( simd: S, slice: &[Self::Unit] ) -> Self::SimdUnit<S>

source§

fn partial_store_last_unit<S: Simd>( simd: S, slice: &mut [Self::Unit], values: Self::SimdUnit<S> )

source§

fn partial_load_unit<S: Simd>( simd: S, slice: &[Self::Unit] ) -> Self::SimdUnit<S>

source§

fn partial_store_unit<S: Simd>( simd: S, slice: &mut [Self::Unit], values: Self::SimdUnit<S> )

source§

fn simd_splat_unit<S: Simd>(simd: S, unit: Self::Unit) -> Self::SimdUnit<S>

source§

fn simd_neg<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_conj<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_add<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_sub<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_mul<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_scale_real<S: Simd>( simd: S, lhs: <Self::Real as Entity>::Group<<Self::Real as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_conj_mul<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_mul_adde<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, acc: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_conj_mul_adde<S: Simd>( simd: S, lhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, rhs: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, acc: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn simd_reduce_add<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> Self

source§

fn simd_abs2_adde<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>, acc: <Self::Real as Entity>::Group<<Self::Real as Entity>::SimdUnit<S>> ) -> <Self::Real as Entity>::Group<<Self::Real as Entity>::SimdUnit<S>>

source§

fn simd_abs2<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self::Real as Entity>::Group<<Self::Real as Entity>::SimdUnit<S>>

source§

fn simd_score<S: Simd>( simd: S, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> ) -> <Self::Real as Entity>::Group<<Self::Real as Entity>::SimdUnit<S>>

source§

fn mul_adde(lhs: &Self, rhs: &Self, acc: &Self) -> Self

Returns an estimate of lhs * rhs + acc.
source§

fn conj_mul_adde(lhs: &Self, rhs: &Self, acc: &Self) -> Self

Returns an estimate of conjugate(lhs) * rhs + acc.
source§

fn is_nan(&self) -> bool

Returns true if self is a NaN value, or false otherwise.
source§

fn is_finite(&self) -> bool

Returns true if self is a NaN value, or false otherwise.
source§

fn partial_load<S: Simd>( simd: S, slice: Self::Group<&[Self::Unit]> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn partial_store<S: Simd>( simd: S, slice: Self::Group<&mut [Self::Unit]>, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> )

source§

fn partial_load_last<S: Simd>( simd: S, slice: Self::Group<&[Self::Unit]> ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

fn partial_store_last<S: Simd>( simd: S, slice: Self::Group<&mut [Self::Unit]>, values: <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>> )

source§

fn simd_splat<S: Simd>( simd: S, value: Self ) -> <Self as Entity>::Group<<Self as Entity>::SimdUnit<S>>

source§

impl Conjugate for c64

§

type Conj = c64conj

Must have the same layout as Self, and Conj::Unit must have the same layout as Unit.
§

type Canonical = c64

Must have the same layout as Self, and Canonical::Unit must have the same layout as Unit.
source§

fn canonicalize(self) -> Self::Canonical

Performs the implicit conjugation operation on the given value, returning the canonical form.
source§

impl Debug for c64

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<c64> for c64

§

type Output = c64

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl Div<c64> for f64

§

type Output = c64

The resulting type after applying the / operator.
source§

fn div(self, rhs: c64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<f64> for c64

§

type Output = c64

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
source§

impl Entity for c64

§

type Unit = c64

§

type Index = u64

§

type SimdUnit<S: Simd> = <S as Simd>::c64s

§

type SimdMask<S: Simd> = <S as Simd>::m64s

§

type SimdIndex<S: Simd> = <S as Simd>::u64s

§

type Group<T> = T

§

type GroupCopy<T: Copy> = T

Must be the same as Group<T>.
§

type GroupThreadSafe<T: Send + Sync> = T

Must be the same as Group<T>.
§

type Iter<I: Iterator> = I

source§

const N_COMPONENTS: usize = 1usize

source§

const HAS_SIMD: bool = true

source§

const UNIT: Self::GroupCopy<()> = ()

source§

fn from_units(group: Self::Group<Self::Unit>) -> Self

source§

fn into_units(self) -> Self::Group<Self::Unit>

source§

fn as_ref<T>(group: &Self::Group<T>) -> Self::Group<&T>

source§

fn as_mut<T>(group: &mut Self::Group<T>) -> Self::Group<&mut T>

source§

fn map<T, U>(group: Self::Group<T>, f: impl FnMut(T) -> U) -> Self::Group<U>

source§

fn map_with_context<Ctx, T, U>( ctx: Ctx, group: Self::Group<T>, f: impl FnMut(Ctx, T) -> (Ctx, U) ) -> (Ctx, Self::Group<U>)

source§

fn zip<T, U>( first: Self::Group<T>, second: Self::Group<U> ) -> Self::Group<(T, U)>

source§

fn unzip<T, U>(zipped: Self::Group<(T, U)>) -> (Self::Group<T>, Self::Group<U>)

source§

fn into_iter<I: IntoIterator>(iter: Self::Group<I>) -> Self::Iter<I::IntoIter>

source§

fn from_copy<T: Copy>(group: Self::GroupCopy<T>) -> Self::Group<T>

source§

fn into_copy<T: Copy>(group: Self::Group<T>) -> Self::GroupCopy<T>

source§

fn unzip2<T>(zipped: Self::Group<[T; 2]>) -> [Self::Group<T>; 2]

source§

fn unzip4<T>(zipped: Self::Group<[T; 4]>) -> [Self::Group<T>; 4]

source§

fn unzip8<T>(zipped: Self::Group<[T; 8]>) -> [Self::Group<T>; 8]

source§

fn as_arrays<const N: usize, T>( group: Self::Group<&[T]> ) -> (Self::Group<&[[T; N]]>, Self::Group<&[T]>)

source§

fn as_arrays_mut<const N: usize, T>( group: Self::Group<&mut [T]> ) -> (Self::Group<&mut [[T; N]]>, Self::Group<&mut [T]>)

source§

fn deref<T: Clone>(group: Self::Group<&T>) -> Self::Group<T>

source§

fn rb<'short, T: Reborrow<'short>>( value: Self::Group<&'short T> ) -> Self::Group<T::Target>

source§

fn rb_mut<'short, T: ReborrowMut<'short>>( value: Self::Group<&'short mut T> ) -> Self::Group<T::Target>

source§

fn into_const<T: IntoConst>(value: Self::Group<T>) -> Self::Group<T::Target>

source§

fn map_copy<T: Copy, U: Copy>( group: Self::GroupCopy<T>, f: impl FnMut(T) -> U ) -> Self::GroupCopy<U>

source§

fn copy<T: Copy>(group: &Self::Group<T>) -> Self::Group<T>

source§

impl From<Complex<f64>> for c64

source§

fn from(value: Complex64) -> Self

Converts to this type from the input type.
source§

impl From<c64> for Complex64

source§

fn from(value: c64) -> Self

Converts to this type from the input type.
source§

impl Mul<c64> for c64

§

type Output = c64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<c64> for f64

§

type Output = c64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: c64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<f64> for c64

§

type Output = c64

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
source§

impl Neg for c64

§

type Output = c64

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl PartialEq<c64> for c64

source§

fn eq(&self, other: &c64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub<c64> for c64

§

type Output = c64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<c64> for f64

§

type Output = c64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: c64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<f64> for c64

§

type Output = c64

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
source§

impl Zeroable for c64

source§

fn zeroed() -> Self

source§

impl Copy for c64

source§

impl Pod for c64

source§

impl StructuralPartialEq for c64

Auto Trait Implementations§

§

impl RefUnwindSafe for c64

§

impl Send for c64

§

impl Sync for c64

§

impl Unpin for c64

§

impl UnwindSafe for c64

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AnyBitPattern for Twhere T: Pod,

source§

impl<T> NoUninit for Twhere T: Pod,