pub struct CpuTensorLinalgBackend;Expand description
Trait Implementations§
Source§impl Clone for CpuTensorLinalgBackend
impl Clone for CpuTensorLinalgBackend
Source§fn clone(&self) -> CpuTensorLinalgBackend
fn clone(&self) -> CpuTensorLinalgBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuTensorLinalgBackend
impl Debug for CpuTensorLinalgBackend
Source§impl Default for CpuTensorLinalgBackend
impl Default for CpuTensorLinalgBackend
Source§fn default() -> CpuTensorLinalgBackend
fn default() -> CpuTensorLinalgBackend
Returns the “default value” for a type. Read more
Source§impl<T> TensorLinalgPrims<T> for CpuTensorLinalgBackendwhere
T: KernelLinalgScalar,
impl<T> TensorLinalgPrims<T> for CpuTensorLinalgBackendwhere
T: KernelLinalgScalar,
type Context = CpuContext
fn has_linalg_support(_op: LinalgCapabilityOp) -> bool
Source§fn solve_ex(
ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context,
a: &Tensor<T>,
b: &Tensor<T>,
) -> Result<SolveTensorExResult<T>, Error>
fn solve_ex( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, b: &Tensor<T>, ) -> Result<SolveTensorExResult<T>, Error>
Solve a square linear system while returning per-batch numerical status. Read more
fn solve( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, b: &Tensor<T>, ) -> Result<Tensor<T>, Error>
fn lu_solve( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, factors: &Tensor<T>, pivots: &Tensor<i32>, b: &Tensor<T>, ) -> Result<Tensor<T>, Error>
fn solve_triangular( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, b: &Tensor<T>, upper: bool, ) -> Result<Tensor<T>, Error>
fn qr( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<QrTensorResult<T>, Error>
fn thin_svd( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<SvdTensorResult<T>, Error>
fn svdvals( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<Tensor<<T as LinalgScalar>::Real>, Error>
Source§fn lu_factor_ex(
ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context,
a: &Tensor<T>,
) -> Result<LuTensorExResult<T>, Error>
fn lu_factor_ex( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<LuTensorExResult<T>, Error>
Compute an LU factorization while returning per-batch numerical status. Read more
fn lu_factor( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<LuTensorResult<T>, Error>
Source§fn lu_factor_no_pivot(
ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context,
a: &Tensor<T>,
) -> Result<LuTensorResult<T>, Error>
fn lu_factor_no_pivot( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<LuTensorResult<T>, Error>
Compute an LU factorization without pivoting. Read more
Source§fn cholesky_ex(
ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context,
a: &Tensor<T>,
) -> Result<CholeskyTensorExResult<T>, Error>
fn cholesky_ex( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<CholeskyTensorExResult<T>, Error>
Compute a Cholesky factorization while returning per-batch numerical status. Read more
fn cholesky( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<Tensor<T>, Error>
fn eigen_sym( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<EigenTensorResult<T>, Error>
fn eig( ctx: &mut <CpuTensorLinalgBackend as TensorLinalgPrims<T>>::Context, a: &Tensor<T>, ) -> Result<EigTensorResult<T>, Error>
impl Copy for CpuTensorLinalgBackend
Auto Trait Implementations§
impl Freeze for CpuTensorLinalgBackend
impl RefUnwindSafe for CpuTensorLinalgBackend
impl Send for CpuTensorLinalgBackend
impl Sync for CpuTensorLinalgBackend
impl Unpin for CpuTensorLinalgBackend
impl UnwindSafe for CpuTensorLinalgBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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