pub struct SimdOdeOps;Expand description
SIMD-optimized ODE operations
Implementations§
Source§impl SimdOdeOps
impl SimdOdeOps
Sourcepub fn simd_axpy<F: IntegrateFloat + SimdUnifiedOps>(
y: &mut ArrayViewMut1<'_, F>,
a: F,
dy: &ArrayView1<'_, F>,
)
pub fn simd_axpy<F: IntegrateFloat + SimdUnifiedOps>( y: &mut ArrayViewMut1<'_, F>, a: F, dy: &ArrayView1<'_, F>, )
Compute y = y + a * dy using SIMD operations
Sourcepub fn simd_linear_combination<F: IntegrateFloat + SimdUnifiedOps>(
x: &ArrayView1<'_, F>,
a: F,
y: &ArrayView1<'_, F>,
b: F,
) -> Array1<F>
pub fn simd_linear_combination<F: IntegrateFloat + SimdUnifiedOps>( x: &ArrayView1<'_, F>, a: F, y: &ArrayView1<'_, F>, b: F, ) -> Array1<F>
Compute linear combination: result = ax + by using SIMD
Sourcepub fn simd_element_max<F: IntegrateFloat + SimdUnifiedOps>(
a: &ArrayView1<'_, F>,
b: &ArrayView1<'_, F>,
) -> Array1<F>
pub fn simd_element_max<F: IntegrateFloat + SimdUnifiedOps>( a: &ArrayView1<'_, F>, b: &ArrayView1<'_, F>, ) -> Array1<F>
Compute element-wise maximum using SIMD
Sourcepub fn simd_element_min<F: IntegrateFloat + SimdUnifiedOps>(
a: &ArrayView1<'_, F>,
b: &ArrayView1<'_, F>,
) -> Array1<F>
pub fn simd_element_min<F: IntegrateFloat + SimdUnifiedOps>( a: &ArrayView1<'_, F>, b: &ArrayView1<'_, F>, ) -> Array1<F>
Compute element-wise minimum using SIMD
Sourcepub fn simd_norm_l2<F: IntegrateFloat + SimdUnifiedOps>(
x: &ArrayView1<'_, F>,
) -> F
pub fn simd_norm_l2<F: IntegrateFloat + SimdUnifiedOps>( x: &ArrayView1<'_, F>, ) -> F
Compute L2 norm using SIMD
Sourcepub fn simd_norm_inf<F: IntegrateFloat + SimdUnifiedOps>(
x: &ArrayView1<'_, F>,
) -> F
pub fn simd_norm_inf<F: IntegrateFloat + SimdUnifiedOps>( x: &ArrayView1<'_, F>, ) -> F
Compute infinity norm using SIMD
Sourcepub fn simd_map_scalar<F, Func>(x: &ArrayView1<'_, F>, f: Func) -> Array1<F>
pub fn simd_map_scalar<F, Func>(x: &ArrayView1<'_, F>, f: Func) -> Array1<F>
Apply scalar function element-wise using SIMD where possible
Auto Trait Implementations§
impl Freeze for SimdOdeOps
impl RefUnwindSafe for SimdOdeOps
impl Send for SimdOdeOps
impl Sync for SimdOdeOps
impl Unpin for SimdOdeOps
impl UnsafeUnpin for SimdOdeOps
impl UnwindSafe for SimdOdeOps
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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