Skip to content

v0.7.0

Choose a tag to compare

@jvdd jvdd released this 09 Oct 18:18
· 14 commits to main since this release

Highlights

  • Skip nulls: the new ArgMinMaxMasked and NaNArgMinMaxMasked traits take an Arrow validity bitmap and its bit offset, and return None when no element is valid (#99). The arrow implementations use them, so they now skip the nulls.
  • AVX512 on stable Rust (#83). The default features build on stable Rust for all targets.
  • i128 and u128 support (#92).
  • Faster: the SIMD loops compare the running min/max with one candidate per group of 4 vectors (#88). NEON is used for i64 and u64 on aarch64 (#104).
  • Fixes: -0.0 and 0.0 are equal (f16, and f32/f64 with NaNs) (#98, #100); negative NaNs are ignored in f16 SIMD (#85); the ignore-NaN functions return the first non-NaN index when only infinities are left (#97, #102); 8 and 16-bit data only go to AVX512 when AVX512BW is available (#84).

Breaking changes

  • MSRV is 1.89 (#83).
  • nightly_simd is no longer a default feature (#91). It only enables NEON on 32-bit ARM (nightly Rust). On x86 and aarch64 it has no effect.
  • The arrow2 feature is removed (#101), as arrow2 is archived. Call the functions on array.values().as_slice(), with ArgMinMaxMasked to skip the nulls.
  • The arrow implementations skip nulls (#99). Before, the values in the null slots were included in the result.

What's Changed

  • chore: update dependencies by @jvdd in #78
  • ci: upgrade CodSpeed to v5 and pin nightly toolchain by @jvdd in #80
  • ci: enable dependabot version updates by @jvdd in #79
  • test: exclude infinities from the random float test data by @jvdd in #86
  • chore(deps): bump the actions group with 2 updates by @dependabot[bot] in #81
  • chore(deps): update rstest requirement from 0.26 to 0.27 in the cargo group by @dependabot[bot] in #82
  • fix: ignore negative NaNs in the f16 SIMD implementations by @jvdd in #85
  • fix: only dispatch 8 and 16-bit data to AVX512 when AVX512BW is available by @jvdd in #84
  • ci: run the tests on AVX512 CPUs emulated by Intel SDE by @jvdd in #87
  • feat: ungate AVX512 from nightly_simd and set rust-version to 1.89 by @jvdd in #83
  • refactor: derive the core argmin/argmax from the core argminmax by @jvdd in #93
  • ci: enable clippy by @jvdd in #90
  • feat!: make nightly_simd a non-default feature by @jvdd in #91
  • feat: add i128 and u128 support by @jvdd in #92
  • refactor: dispatch all argminmax methods with one macro by @jvdd in #94
  • fix: return the first non-NaN index in the scalar f16 argmin and argmax when only infinities are left by @jvdd in #97
  • fix: treat -0.0 and 0.0 as equal in the f32 and f64 SIMD implementations that return NaNs by @jvdd in #98
  • feat!: remove the arrow2 feature, as arrow2 is archived by @jvdd in #101
  • fix: treat -0.0 and 0.0 as equal in the f16 implementations by @jvdd in #100
  • fix: return the first non-NaN index in the SIMD implementations that ignore NaNs when only infinities are left by @jvdd in #102
  • perf: compare the running min/max with one candidate per group of 4 vectors by @jvdd in #88
  • perf: use NEON for the i64 and u64 argminmax on aarch64 by @jvdd in #104
  • feat!: skip nulls with ArgMinMaxMasked and NaNArgMinMaxMasked, also in the arrow implementations by @jvdd in #99
  • test: cover arrow Float16 arrays with nulls, and small cleanups of the masked code by @jvdd in #111
  • refactor: implement DTypeInfo with one blanket impl instead of a macro by @jvdd in #112
  • test: compare SIMD with scalar for every short array length, also on data with many ties by @jvdd in #114

New Contributors

Full Changelog: v0.6.3...v0.7.0