Crate lav

Crate lav 

Source
Expand description

Lane-Associated Vector (LAV): Portable SIMD vector trait as GAT of SIMD lane trait.

NOTE: This crate requires nightly Rust.

This example uses SIMD generically over floating-point types while hiding it from the user.

§Features

§Optional Features

Following features are disabled by default unless their feature gate is enabled:

  • target-features: Provides native number of SIMD vector lanes Real::NATIVE_LANE_COUNT for the current build target.
  • libm: Enables no_std without loss of functionality.

Modules§

example
Portably SIMD-optimized 3D rotator implementation generic over lane type f32 and f64.

Macros§

swizzle
Constructs vector by copying lanes from selected lanes of one or two input vectors.

Traits§

ApproxEq
Tests for approximate equality.
Bits
Bits representation of Real number with associated SimdBits vector.
Real
Real number of f32 or f64 with associated Bits representation and SimdReal vector.
Select
Selects lanes from two vectors by mask vector.
SimdBits
Bits representation vector of SimdReal vector with associated SimdMask vector.
SimdMask
Mask vector of Mask<i32, N> or Mask<i64, N>.
SimdReal
Real number vector of Simd<f32, N> or Simd<f64, N> with associated SimdBits and SimdMask vector.