Struct mwa_rust_core::jones::Jones
source · [−]Implementations
sourceimpl<F: Float> Jones<F>
impl<F: Float> Jones<F>
sourcepub fn nan() -> Self
pub fn nan() -> Self
Return a matrix with all real parts set to NaN and all imaginary parts
set to zero. Jones::any_nan() will return true
for this Jones matrix.
sourcepub fn h(self) -> Self
pub fn h(self) -> Self
From an input Jones matrix, get a copy that has been Hermitian
conjugated (J^H
).
sourcepub fn mul_hermitian(self, b: Self) -> Self
pub fn mul_hermitian(self, b: Self) -> Self
Multiply by a Jones matrix which gets Hermitian conjugated (J^H
).
sourcepub fn inv(self) -> Self
pub fn inv(self) -> Self
Get the inverse of the Jones matrix (J^I
).
Ideally, J^I . J = I
. However it’s possible that J
is singular, in
which case the contents of J^I
are all NaN.
sourcepub fn norm_sqr(self) -> [F; 4]
pub fn norm_sqr(self) -> [F; 4]
Call Complex::norm_sqr()
on each element of a Jones matrix.
pub fn axb(a: Self, b: Self) -> Self
pub fn axbh(a: Self, b: Self) -> Self
Trait Implementations
sourceimpl<F: Float + AbsDiffEq> AbsDiffEq<Jones<F>> for Jones<F> where
F::Epsilon: Clone,
impl<F: Float + AbsDiffEq> AbsDiffEq<Jones<F>> for Jones<F> where
F::Epsilon: Clone,
sourcefn default_epsilon() -> F::Epsilon
fn default_epsilon() -> F::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: F::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: F::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<F: Float + NumAssign> AddAssign<&'_ Jones<F>> for Jones<F>
impl<F: Float + NumAssign> AddAssign<&'_ Jones<F>> for Jones<F>
sourcefn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the +=
operation. Read more
sourceimpl<F: Float + NumAssign> AddAssign<Jones<F>> for Jones<F>
impl<F: Float + NumAssign> AddAssign<Jones<F>> for Jones<F>
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl<F: Float + NumAssign> DivAssign<&'_ Jones<F>> for Jones<F>
impl<F: Float + NumAssign> DivAssign<&'_ Jones<F>> for Jones<F>
sourcefn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Performs the /=
operation. Read more
sourceimpl<F: Float + NumAssign> DivAssign<Complex<F>> for Jones<F>
impl<F: Float + NumAssign> DivAssign<Complex<F>> for Jones<F>
sourcefn div_assign(&mut self, rhs: Complex<F>)
fn div_assign(&mut self, rhs: Complex<F>)
Performs the /=
operation. Read more
sourceimpl<F: Float + NumAssign> DivAssign<F> for Jones<F>
impl<F: Float + NumAssign> DivAssign<F> for Jones<F>
sourcefn div_assign(&mut self, rhs: F)
fn div_assign(&mut self, rhs: F)
Performs the /=
operation. Read more
sourceimpl<F: Float + NumAssign> DivAssign<Jones<F>> for Jones<F>
impl<F: Float + NumAssign> DivAssign<Jones<F>> for Jones<F>
sourcefn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the /=
operation. Read more
sourceimpl<F: Float + NumAssign> MulAssign<&'_ Jones<F>> for Jones<F>
impl<F: Float + NumAssign> MulAssign<&'_ Jones<F>> for Jones<F>
sourcefn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the *=
operation. Read more
sourceimpl<F: Float + NumAssign> MulAssign<Complex<F>> for Jones<F>
impl<F: Float + NumAssign> MulAssign<Complex<F>> for Jones<F>
sourcefn mul_assign(&mut self, rhs: Complex<F>)
fn mul_assign(&mut self, rhs: Complex<F>)
Performs the *=
operation. Read more
sourceimpl<F: Float + NumAssign> MulAssign<F> for Jones<F>
impl<F: Float + NumAssign> MulAssign<F> for Jones<F>
sourcefn mul_assign(&mut self, rhs: F)
fn mul_assign(&mut self, rhs: F)
Performs the *=
operation. Read more
sourceimpl<F: Float + NumAssign> MulAssign<Jones<F>> for Jones<F>
impl<F: Float + NumAssign> MulAssign<Jones<F>> for Jones<F>
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl<F: Float + NumAssign> SubAssign<&'_ Jones<F>> for Jones<F>
impl<F: Float + NumAssign> SubAssign<&'_ Jones<F>> for Jones<F>
sourcefn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the -=
operation. Read more
sourceimpl<F: Float + NumAssign> SubAssign<Jones<F>> for Jones<F>
impl<F: Float + NumAssign> SubAssign<Jones<F>> for Jones<F>
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl<F: Copy + Float + Num> Copy for Jones<F>
impl<F: Float + Num> StructuralPartialEq for Jones<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for Jones<F> where
F: RefUnwindSafe,
impl<F> Send for Jones<F> where
F: Send,
impl<F> Sync for Jones<F> where
F: Sync,
impl<F> Unpin for Jones<F> where
F: Unpin,
impl<F> UnwindSafe for Jones<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more