pub struct EnhancedSumOperator<F> { /* private fields */ }
Expand description
Enhanced sum operator with parallel acceleration
Implementations§
Source§impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> EnhancedSumOperator<F>
impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> EnhancedSumOperator<F>
Sourcepub fn new(
a: Box<dyn LinearOperator<F>>,
b: Box<dyn LinearOperator<F>>,
) -> SparseResult<Self>
pub fn new( a: Box<dyn LinearOperator<F>>, b: Box<dyn LinearOperator<F>>, ) -> SparseResult<Self>
Create a new enhanced sum operator
Sourcepub fn with_options(
a: Box<dyn LinearOperator<F>>,
b: Box<dyn LinearOperator<F>>,
options: EnhancedOperatorOptions,
) -> SparseResult<Self>
pub fn with_options( a: Box<dyn LinearOperator<F>>, b: Box<dyn LinearOperator<F>>, options: EnhancedOperatorOptions, ) -> SparseResult<Self>
Create with custom options
Trait Implementations§
Source§impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> LinearOperator<F> for EnhancedSumOperator<F>
impl<F: Float + NumAssign + Sum + Copy + Send + Sync + SimdUnifiedOps> LinearOperator<F> for EnhancedSumOperator<F>
Source§fn rmatvec(&self, x: &[F]) -> SparseResult<Vec<F>>
fn rmatvec(&self, x: &[F]) -> SparseResult<Vec<F>>
Apply the adjoint of the operator to a vector: y = A^H * x
Default implementation returns an error
Source§fn has_adjoint(&self) -> bool
fn has_adjoint(&self) -> bool
Check if the operator supports adjoint operations
Auto Trait Implementations§
impl<F> Freeze for EnhancedSumOperator<F>
impl<F> !RefUnwindSafe for EnhancedSumOperator<F>
impl<F> !Send for EnhancedSumOperator<F>
impl<F> !Sync for EnhancedSumOperator<F>
impl<F> Unpin for EnhancedSumOperator<F>
impl<F> !UnwindSafe for EnhancedSumOperator<F>
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> 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