pub struct EnhancedSimdOps;Expand description
Enhanced SIMD operations optimized for financial data processing
Implementations§
Source§impl EnhancedSimdOps
impl EnhancedSimdOps
Sourcepub fn sum_f64_optimized(values: &[f64]) -> f64
pub fn sum_f64_optimized(values: &[f64]) -> f64
Optimized SIMD sum with explicit prefetching for large arrays
Sourcepub fn variance_welford_scalar(values: &[f64]) -> f64
pub fn variance_welford_scalar(values: &[f64]) -> f64
Welford’s algorithm for variance calculation (scalar implementation) This is the actual Welford’s algorithm with single-pass, numerically stable computation
Sourcepub fn variance_two_pass_simd(values: &[f64]) -> f64
pub fn variance_two_pass_simd(values: &[f64]) -> f64
Two-pass variance calculation using SIMD with aligned memory access Uses simd_aligned for guaranteed memory alignment and optimal performance
Sourcepub fn running_average_simd(values: &[f64], window_size: usize) -> Vec<f64>
pub fn running_average_simd(values: &[f64], window_size: usize) -> Vec<f64>
Calculate running averages for price series using SIMD Optimized for typical HFT window sizes (50-200 periods)
Sourcepub fn correlation_simd(x: &[f64], y: &[f64]) -> f64
pub fn correlation_simd(x: &[f64], y: &[f64]) -> f64
Optimized correlation calculation using SIMD Processes two price series to calculate correlation coefficient
Sourcepub fn log_returns_simd(prices: &[f64]) -> Vec<f64>
pub fn log_returns_simd(prices: &[f64]) -> Vec<f64>
Optimized price returns calculation with SIMD Calculates log returns: ln(price[i] / price[i-1])
Auto Trait Implementations§
impl Freeze for EnhancedSimdOps
impl RefUnwindSafe for EnhancedSimdOps
impl Send for EnhancedSimdOps
impl Sync for EnhancedSimdOps
impl Unpin for EnhancedSimdOps
impl UnwindSafe for EnhancedSimdOps
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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