pub struct CudaContext { /* private fields */ }Expand description
CUDA execution context (stub).
Status: Stub. This type exists as an API placeholder when the cuda
feature is not enabled. All operations on CudaBackend return errors.
Enable the cuda feature for the real implementation.
§Examples
ⓘ
// Aspirational API — not yet functional without `cuda` feature.
use tenferro_prims::CudaContext;Implementations§
Trait Implementations§
Source§impl Default for CudaContext
Available on non-crate feature cuda only.
impl Default for CudaContext
Available on non-crate feature
cuda only.Source§impl<Input> TensorComplexRealContextFor<Input> for CudaContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar,
CudaBackend: TensorComplexRealPrims<Input, Context = CudaContext, Real = Input::Real>,
impl<Input> TensorComplexRealContextFor<Input> for CudaContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar,
CudaBackend: TensorComplexRealPrims<Input, Context = CudaContext, Real = Input::Real>,
Source§type ComplexRealBackend = CudaBackend
type ComplexRealBackend = CudaBackend
Backend associated with this context for the complex-to-real family.
Source§impl<Input> TensorComplexScaleContextFor<Input> for CudaContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar + Send + Sync,
CudaBackend: TensorComplexScalePrims<Input, Context = CudaContext>,
impl<Input> TensorComplexScaleContextFor<Input> for CudaContextwhere
Input: ComplexFloat + Scalar,
Input::Real: Scalar + Send + Sync,
CudaBackend: TensorComplexScalePrims<Input, Context = CudaContext>,
Source§type ComplexScaleBackend = CudaBackend
type ComplexScaleBackend = CudaBackend
Backend associated with the complex-by-real family.
Source§impl<Alg> TensorIndexingContextFor<Alg> for CudaContext
impl<Alg> TensorIndexingContextFor<Alg> for CudaContext
Source§type IndexingBackend = CudaBackend
type IndexingBackend = CudaBackend
Backend associated with this context for the indexing family.
Source§impl TensorMetadataContextFor for CudaContext
impl TensorMetadataContextFor for CudaContext
Source§type MetadataBackend = CudaBackend
type MetadataBackend = CudaBackend
Backend associated with this context for the metadata family.
Source§impl<T> TensorResolveConjContextFor<T> for CudaContext
impl<T> TensorResolveConjContextFor<T> for CudaContext
Source§fn resolve_conj(ctx: &mut Self, src: &Tensor<T>) -> Tensor<T>
fn resolve_conj(ctx: &mut Self, src: &Tensor<T>) -> Tensor<T>
Materialize a lazily-conjugated tensor using the backend tied to
Self.Source§impl<Alg> TensorScalarContextFor<Alg> for CudaContext
impl<Alg> TensorScalarContextFor<Alg> for CudaContext
Source§type ScalarBackend = CudaBackend
type ScalarBackend = CudaBackend
Backend associated with this context for the scalar family.
Source§impl<Alg> TensorSemiringContextFor<Alg> for CudaContext
impl<Alg> TensorSemiringContextFor<Alg> for CudaContext
Source§type SemiringBackend = CudaBackend
type SemiringBackend = CudaBackend
Backend associated with this context for the given algebra family.
Source§impl<Alg> TensorSortContextFor<Alg> for CudaContextwhere
Alg: Algebra,
Alg::Scalar: PartialOrd,
CudaBackend: TensorSortPrims<Alg, Context = CudaContext>,
impl<Alg> TensorSortContextFor<Alg> for CudaContextwhere
Alg: Algebra,
Alg::Scalar: PartialOrd,
CudaBackend: TensorSortPrims<Alg, Context = CudaContext>,
Source§type SortBackend = CudaBackend
type SortBackend = CudaBackend
Backend associated with this context for the sort family.
Auto Trait Implementations§
impl Freeze for CudaContext
impl !RefUnwindSafe for CudaContext
impl !Send for CudaContext
impl !Sync for CudaContext
impl Unpin for CudaContext
impl !UnwindSafe for CudaContext
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
§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