Skip to main content

Geqrf

Struct Geqrf 

Source
pub struct Geqrf<TA, TTau = TA> { /* private fields */ }
Expand description

Typed QR factorization operation.

Implementations§

Source§

impl<TA, TTau> Geqrf<TA, TTau>
where TA: DataTypeLike, TTau: DataTypeLike,

Source

pub fn new(rows: usize, cols: usize) -> Self

Creates a typed GEQRF operation using the matrix data type as compute type.

Source

pub const fn with_compute_type(self, compute_type: DataType) -> Self

Sets the compute type passed to the generic cuSOLVER X API.

Source

pub const fn rows(&self) -> usize

Returns the matrix row count.

Source

pub const fn cols(&self) -> usize

Returns the matrix column count.

Source

pub const fn compute_type(&self) -> DataType

Returns the cuSOLVER compute type.

Source

pub fn workspace_size( &self, ctx: &Context, params: &Params, a: MatrixRef<'_, TA>, tau: VectorRef<'_, TTau>, ) -> Result<WorkspaceSizes>

Returns the required device and host workspace sizes.

§Errors

Returns an error if inputs are invalid or if cuSOLVER cannot report the workspace sizes.

Source

pub fn run( &self, ctx: &Context, params: &Params, args: GeqrfArgs<'_, TA, TTau>, ) -> Result<()>

Computes the QR factorization in place.

§Errors

Returns an error if inputs or workspaces are invalid, or if cuSOLVER reports a failure.

Trait Implementations§

Source§

impl<TA: Clone, TTau: Clone> Clone for Geqrf<TA, TTau>

Source§

fn clone(&self) -> Geqrf<TA, TTau>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<TA: Copy, TTau: Copy> Copy for Geqrf<TA, TTau>

Source§

impl<TA: Debug, TTau: Debug> Debug for Geqrf<TA, TTau>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<TA: Eq, TTau: Eq> Eq for Geqrf<TA, TTau>

Source§

impl<TA: PartialEq, TTau: PartialEq> PartialEq for Geqrf<TA, TTau>

Source§

fn eq(&self, other: &Geqrf<TA, TTau>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<TA: PartialEq, TTau: PartialEq> StructuralPartialEq for Geqrf<TA, TTau>

Auto Trait Implementations§

§

impl<TA, TTau> Freeze for Geqrf<TA, TTau>

§

impl<TA, TTau> RefUnwindSafe for Geqrf<TA, TTau>
where TA: RefUnwindSafe, TTau: RefUnwindSafe,

§

impl<TA, TTau> Send for Geqrf<TA, TTau>
where TA: Send, TTau: Send,

§

impl<TA, TTau> Sync for Geqrf<TA, TTau>
where TA: Sync, TTau: Sync,

§

impl<TA, TTau> Unpin for Geqrf<TA, TTau>
where TA: Unpin, TTau: Unpin,

§

impl<TA, TTau> UnsafeUnpin for Geqrf<TA, TTau>

§

impl<TA, TTau> UnwindSafe for Geqrf<TA, TTau>
where TA: UnwindSafe, TTau: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.