pub struct DeviceMatrix<T> { /* private fields */ }Implementations§
Source§impl<T> DeviceMatrix<T>
impl<T> DeviceMatrix<T>
pub fn new(buffer: Arc<DeviceBuffer<T>>, height: usize, width: usize) -> Self
pub fn with_capacity_on( height: usize, width: usize, device_ctx: &GpuDeviceCtx, ) -> Self
pub fn dummy() -> Self
pub fn buffer(&self) -> &DeviceBuffer<T>
pub fn strong_count(&self) -> usize
pub fn as_view(&self) -> DeviceMatrixView<'_, T>
Trait Implementations§
Source§impl<T> Clone for DeviceMatrix<T>
impl<T> Clone for DeviceMatrix<T>
Source§impl<T: Debug> Debug for DeviceMatrix<T>
impl<T: Debug> Debug for DeviceMatrix<T>
Source§impl<T> Drop for DeviceMatrix<T>
impl<T> Drop for DeviceMatrix<T>
Source§impl<T> MatrixDimensions for DeviceMatrix<T>
impl<T> MatrixDimensions for DeviceMatrix<T>
Source§impl<T> MemCopyD2H<T> for DeviceMatrix<T>
impl<T> MemCopyD2H<T> for DeviceMatrix<T>
fn to_host_on(&self, device_ctx: &GpuDeviceCtx) -> Result<Vec<T>, MemCopyError>
impl<T> Send for DeviceMatrix<T>
impl<T> Sync for DeviceMatrix<T>
Auto Trait Implementations§
impl<T> Freeze for DeviceMatrix<T>
impl<T> RefUnwindSafe for DeviceMatrix<T>where
T: RefUnwindSafe,
impl<T> Unpin for DeviceMatrix<T>
impl<T> UnsafeUnpin for DeviceMatrix<T>
impl<T> UnwindSafe for DeviceMatrix<T>where
T: RefUnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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