#[repr(C)]pub struct JacobiRotation<T> {
pub c: T,
pub s: T,
}Expand description
jacobi rotation matrix
$$ \begin{bmatrix} c & -\bar s \\ s & c \end{bmatrix} $$
Fields§
§c: Tcosine
s: Tsine
Implementations§
Source§impl<T: ComplexField> JacobiRotation<T>
impl<T: ComplexField> JacobiRotation<T>
Sourcepub fn apply_on_the_left_2x2(
&self,
m00: T,
m01: T,
m10: T,
m11: T,
) -> (T, T, T, T)
pub fn apply_on_the_left_2x2( &self, m00: T, m01: T, m10: T, m11: T, ) -> (T, T, T, T)
apply to the given matrix from the left
$$ J \begin{bmatrix} m_{00} & m_{01} \\ m_{10} & m_{11} \end{bmatrix} $$
Sourcepub fn apply_on_the_right_2x2(
&self,
m00: T,
m01: T,
m10: T,
m11: T,
) -> (T, T, T, T)
pub fn apply_on_the_right_2x2( &self, m00: T, m01: T, m10: T, m11: T, ) -> (T, T, T, T)
apply to the given matrix from the right
$$ \begin{bmatrix} m_{00} & m_{01} \\ m_{10} & m_{11} \end{bmatrix} J $$
Sourcepub fn apply_on_the_left_in_place<N: Shape>(
&self,
(x, y): (RowMut<'_, T, N>, RowMut<'_, T, N>),
)
pub fn apply_on_the_left_in_place<N: Shape>( &self, (x, y): (RowMut<'_, T, N>, RowMut<'_, T, N>), )
apply from the left to $x$ and $y$
Sourcepub fn apply_on_the_right_in_place<N: Shape>(
&self,
(x, y): (ColMut<'_, T, N>, ColMut<'_, T, N>),
)
pub fn apply_on_the_right_in_place<N: Shape>( &self, (x, y): (ColMut<'_, T, N>, ColMut<'_, T, N>), )
apply from the right to $x$ and $y$
Trait Implementations§
Source§impl<T: Clone> Clone for JacobiRotation<T>
impl<T: Clone> Clone for JacobiRotation<T>
Source§fn clone(&self) -> JacobiRotation<T>
fn clone(&self) -> JacobiRotation<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for JacobiRotation<T>
impl<T: Debug> Debug for JacobiRotation<T>
impl<T: Copy> Copy for JacobiRotation<T>
Auto Trait Implementations§
impl<T> Freeze for JacobiRotation<T>where
T: Freeze,
impl<T> RefUnwindSafe for JacobiRotation<T>where
T: RefUnwindSafe,
impl<T> Send for JacobiRotation<T>where
T: Send,
impl<T> Sync for JacobiRotation<T>where
T: Sync,
impl<T> Unpin for JacobiRotation<T>where
T: Unpin,
impl<T> UnwindSafe for JacobiRotation<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more