pub struct RotRequest<T: AxpyDotNrm2Supported> {
pub n: i32,
pub x: GpuRef<T>,
pub incx: i32,
pub y: GpuRef<T>,
pub incy: i32,
pub c: T::Scalar,
pub s: T::Scalar,
pub reply: Sender<Result<(), GpuError>>,
}Expand description
Givens rotation: applies a 2D rotation (x_i, y_i) := (c·x_i + s·y_i, -s·x_i + c·y_i) in-place across two vectors.
c and s are passed through T::Scalar to match the cuBLAS-Ex
pointer-mode-host convention.
Fields§
§n: i32§x: GpuRef<T>§incx: i32§y: GpuRef<T>§incy: i32§c: T::Scalar§s: T::Scalar§reply: Sender<Result<(), GpuError>>Trait Implementations§
Source§impl BlasL1Dispatch for RotRequest<f32>
impl BlasL1Dispatch for RotRequest<f32>
Source§impl BlasL1Dispatch for RotRequest<f64>
impl BlasL1Dispatch for RotRequest<f64>
Auto Trait Implementations§
impl<T> Freeze for RotRequest<T>
impl<T> !RefUnwindSafe for RotRequest<T>
impl<T> Send for RotRequest<T>
impl<T> Sync for RotRequest<T>
impl<T> Unpin for RotRequest<T>
impl<T> UnsafeUnpin for RotRequest<T>
impl<T> !UnwindSafe for RotRequest<T>
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