pub(crate) struct Rot<T> {
pub(crate) c: T,
pub(crate) s: T,
}Expand description
A plane rotation (c, s): (x, y) ↦ (c x + s y, −s x + c y).
Fields§
§c: T§s: TImplementations§
Source§impl<T: Real> Rot<T>
impl<T: Real> Rot<T>
Sourcepub(crate) fn rotate_cols(
self,
data: &mut [T],
rows: usize,
j1: usize,
j2: usize,
)
pub(crate) fn rotate_cols( self, data: &mut [T], rows: usize, j1: usize, j2: usize, )
Rotate columns j1, j2 of the rows-row column-major data:
(q_j1, q_j2) ← (c q_j1 + s q_j2, −s q_j1 + c q_j2) (the right
multiplication Q ← Q Gᵀ matching a rotation of rows j1, j2 of
R).
Sourcepub(crate) fn rotate_rows(
self,
r: &mut DenseBlock<T>,
i1: usize,
i2: usize,
from: usize,
)
pub(crate) fn rotate_rows( self, r: &mut DenseBlock<T>, i1: usize, i2: usize, from: usize, )
Rotate rows i1, i2 of the block r over the columns from...
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Rot<T>where
T: Freeze,
impl<T> RefUnwindSafe for Rot<T>where
T: RefUnwindSafe,
impl<T> Send for Rot<T>where
T: Send,
impl<T> Sync for Rot<T>where
T: Sync,
impl<T> Unpin for Rot<T>where
T: Unpin,
impl<T> UnsafeUnpin for Rot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Rot<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