1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! # Vector operations for DSP
//!
//! This module provides an embedded domain-specific language (eDSL) for vector
//! operations optimised with SIMD instructions.
//!
//! ## Features
//! - Basic vector types for f32 and f64 with various SIMD lane widths
//! - Arithmetic operations (+, -, *, /, %)
//! - Math functions (sin, cos, exp, ln, sqrt, ...)
//! - Expression system for lazy evaluation and optimisations
//! - Automatic CPU SIMD capability detection
//!
//! ## Usage
//! ```
//! use rill_core::vector::prelude::*;
//!
//! let a = ScalarVector4::splat(1.0);
//! let b = ScalarVector4::splat(2.0);
//! let c = a + b;
//! assert_eq!(c, ScalarVector4::splat(3.0));
//! ```
//!
//! ## Architecture
//! - `traits` — core traits (`Vector`, `VectorOps`, `VectorMath`)
//! - `ops` — arithmetic operator implementations
//! - `math` — math function implementations
//! - `simd` — SIMD backends for different architectures
//! - `expr` — expression system and optimisations
//! - `scalar` — scalar fallback implementations
//!
//! ## Supported platforms
//! - x86/x86_64: SSE2, SSE4.1, AVX, AVX2, AVX512 (runtime detection)
//! - ARM: NEON (AArch64)
//! - WebAssembly: SIMD128
//! - Scalar fallback for platforms without SIMD
/// Vector math functions (sin, cos, etc.).
/// Arithmetic operator implementations for vectors.
/// Core vector traits (`Vector`, `VectorTranscendental`, etc.).
// pub mod expr; // temporarily disabled due to compilation errors
/// Vector construction macros.
/// Scalar fallback vector implementations.
/// SIMD-accelerated vector implementations.
// Re-exports
pub use *;
pub use *;
pub use *;
// pub use expr::*;
pub use *;
pub use *;
/// Convenience prelude for importing all vector types and traits.