pub struct Getrf<T> { /* private fields */ }Expand description
Typed LU factorization operation.
Implementations§
Source§impl<T> Getrf<T>where
T: DataTypeLike,
impl<T> Getrf<T>where
T: DataTypeLike,
Sourcepub fn new(rows: usize, cols: usize) -> Self
pub fn new(rows: usize, cols: usize) -> Self
Creates a typed GETRF operation using the matrix data type as compute type.
Sourcepub const fn with_compute_type(self, compute_type: DataType) -> Self
pub const fn with_compute_type(self, compute_type: DataType) -> Self
Sets the compute type passed to the generic cuSOLVER X API.
Sourcepub const fn compute_type(&self) -> DataType
pub const fn compute_type(&self) -> DataType
Returns the cuSOLVER compute type.
Sourcepub fn workspace_size(
&self,
ctx: &Context,
params: &Params,
a: MatrixRef<'_, T>,
) -> Result<WorkspaceSizes>
pub fn workspace_size( &self, ctx: &Context, params: &Params, a: MatrixRef<'_, T>, ) -> Result<WorkspaceSizes>
Returns the required device and host workspace sizes.
§Errors
Returns an error if the matrix shape is invalid or cuSOLVER cannot report the workspace sizes.
Trait Implementations§
impl<T: Copy> Copy for Getrf<T>
impl<T: Eq> Eq for Getrf<T>
impl<T: PartialEq> StructuralPartialEq for Getrf<T>
Auto Trait Implementations§
impl<T> Freeze for Getrf<T>
impl<T> RefUnwindSafe for Getrf<T>where
T: RefUnwindSafe,
impl<T> Send for Getrf<T>where
T: Send,
impl<T> Sync for Getrf<T>where
T: Sync,
impl<T> Unpin for Getrf<T>where
T: Unpin,
impl<T> UnsafeUnpin for Getrf<T>
impl<T> UnwindSafe for Getrf<T>where
T: UnwindSafe,
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