pub struct Nrm2Request<T: AxpyDotNrm2Supported> {
pub n: i32,
pub x: GpuRef<T>,
pub incx: i32,
pub reply: Sender<Result<T::Scalar, GpuError>>,
}Expand description
Compute ||x||_2. The result is written to a host-side
Box<MaybeUninit<T::Scalar>> and forwarded back through reply.
Fields§
§n: i32§x: GpuRef<T>§incx: i32§reply: Sender<Result<T::Scalar, GpuError>>Trait Implementations§
Source§impl BlasL1Dispatch for Nrm2Request<f32>
impl BlasL1Dispatch for Nrm2Request<f32>
Source§impl BlasL1Dispatch for Nrm2Request<f64>
impl BlasL1Dispatch for Nrm2Request<f64>
Auto Trait Implementations§
impl<T> Freeze for Nrm2Request<T>
impl<T> !RefUnwindSafe for Nrm2Request<T>
impl<T> Send for Nrm2Request<T>
impl<T> Sync for Nrm2Request<T>
impl<T> Unpin for Nrm2Request<T>
impl<T> UnsafeUnpin for Nrm2Request<T>
impl<T> !UnwindSafe for Nrm2Request<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