pub struct DnVec<'buf, T> { /* private fields */ }Expand description
Dense vector descriptor for cuSPARSE’s generic API.
Borrows the underlying DeviceBuffer; the buffer cannot be freed while
the descriptor is alive.
Implementations§
Source§impl<'buf, T: SparseScalar + DeviceRepr> DnVec<'buf, T>
impl<'buf, T: SparseScalar + DeviceRepr> DnVec<'buf, T>
Sourcepub fn new(values: &'buf mut DeviceBuffer<T>) -> Result<Self>
pub fn new(values: &'buf mut DeviceBuffer<T>) -> Result<Self>
Build a dense-vector descriptor (cusparseCreateDnVec)
over the buffer values.
Trait Implementations§
impl<T> Send for DnVec<'_, T>
Auto Trait Implementations§
impl<'buf, T> !Sync for DnVec<'buf, T>
impl<'buf, T> !UnwindSafe for DnVec<'buf, T>
impl<'buf, T> Freeze for DnVec<'buf, T>
impl<'buf, T> RefUnwindSafe for DnVec<'buf, T>where
T: RefUnwindSafe,
impl<'buf, T> Unpin for DnVec<'buf, T>
impl<'buf, T> UnsafeUnpin for DnVec<'buf, 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