pub struct MatrixRef<'a, T>where
T: DeviceRepr + Copy + 'static,{
pub data: DeviceSlice<'a, T>,
pub rows: i32,
pub cols: i32,
pub ld: i64,
}Expand description
Read-only view of a device-resident matrix.
ld is the leading dimension in elements (not bytes), measured
along the major axis dictated by the layout: row-stride for row-major
matrices, column-stride for column-major matrices.
Fields§
§data: DeviceSlice<'a, T>Device-resident element storage.
rows: i32Number of rows.
cols: i32Number of columns.
ld: i64Leading dimension in elements.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MatrixRef<'a, T>
impl<'a, T> RefUnwindSafe for MatrixRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MatrixRef<'a, T>where
T: Sync,
impl<'a, T> Sync for MatrixRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for MatrixRef<'a, T>
impl<'a, T> UnsafeUnpin for MatrixRef<'a, T>
impl<'a, T> UnwindSafe for MatrixRef<'a, 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