kodegen_simd 0.0.5

Shared high-performance SIMD operations for cyrup ecosystem
docs.rs failed to build kodegen_simd-0.0.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: kodegen_simd-0.10.9

Ultra-High-Performance SIMD Operations for cyrup Ecosystem

Production-quality vectorized implementations shared across cyrup packages:

  • Vector similarity operations (from memory package)
  • Platform-specific optimizations and fallbacks

Core Features

  • Vectorized Similarity: Parallel cosine similarity with runtime CPU feature detection
  • Zero Allocation: Pre-allocated buffers and stack-based temporary storage
  • Adaptive Selection: Automatic SIMD vs scalar selection based on vector size
  • Platform Support: x86_64 AVX2, ARM64 NEON with portable fallbacks

Usage Examples

Similarity Operations:

use kodegen_simd::similarity::smart_cosine_similarity;

let a = vec![1.0, 2.0, 3.0, 4.0];
let b = vec![4.0, 3.0, 2.0, 1.0];
let similarity = smart_cosine_similarity(&a, &b);