pub struct OwnedMatrix<T: DeviceElement> { /* private fields */ }Expand description
An owned contiguous numeric matrix on one exact cudf execution binding.
Packed storage provides exclusive ownership, allowing in-place native updates without mutating source columns.
Implementations§
Source§impl<T: DeviceElement> OwnedMatrix<T>
impl<T: DeviceElement> OwnedMatrix<T>
pub fn new( resources: &CuvsResources, rows: usize, columns: usize, layout: MatrixLayout, ) -> Result<Self>
pub fn from_packed( resources: &CuvsResources, matrix: PackedMatrix, ) -> Result<Self>
pub fn rows(&self) -> usize
pub fn columns(&self) -> usize
pub fn layout(&self) -> MatrixLayout
pub fn binding_id(&self) -> ExecutionBindingId
pub fn is_input_validated(&self) -> bool
pub fn as_validated_tensor<'a>( &'a self, resources: &CuvsResources, ) -> Result<ValidatedDeviceTensor<'a, T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for OwnedMatrix<T>
impl<T> !UnwindSafe for OwnedMatrix<T>
impl<T> Freeze for OwnedMatrix<T>where
MatrixStorage<T>: Freeze,
impl<T> Send for OwnedMatrix<T>where
MatrixStorage<T>: Send,
impl<T> Sync for OwnedMatrix<T>where
MatrixStorage<T>: Sync,
impl<T> Unpin for OwnedMatrix<T>where
MatrixStorage<T>: Unpin,
impl<T> UnsafeUnpin for OwnedMatrix<T>where
MatrixStorage<T>: UnsafeUnpin,
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