Skip to main content

Module vector

Module vector 

Source
Expand description

§Vector operations for DSP

This module re-exports the vector infrastructure from rill-core. See rill_core::vector for documentation.

Modules§

macros
Vector construction macros. Macros for convenient construction of vector expressions.
math
Vector math functions (sin, cos, etc.).
ops
Arithmetic operator implementations for vectors.
prelude
Prelude for convenient imports
scalar
Scalar fallback vector implementations.
simd
SIMD-accelerated vector implementations.
traits
Core vector traits (Vector, VectorTranscendental, etc.).

Macros§

vec_map
Map over SIMD vector chunks of size 4, applying a closure to each chunk.

Structs§

ScalarVector1
Scalar vector of 1 element
ScalarVector2
Scalar vector of 2 elements
ScalarVector4
Scalar vector of 4 elements
ScalarVector8
Scalar vector of 8 elements

Traits§

Vector
Core trait for vector types (basic operations).
VectorMask
Vector comparison and masking operations.
VectorReduce
Horizontal reduction operations (vector → scalar).
VectorScalarOps
Scalar-vector arithmetic operations.
VectorTranscendental
Trait for vector types with transcendental operations.

Functions§

abs_slice
Element-wise absolute value of a slice
add_scalar_slice
Add a scalar to a slice
add_slices
Element-wise addition of two slices, storing the result in a third
clamp_slice
Element-wise clamp of a slice
cos_slice
Element-wise cosine of a slice
div_slices
Element-wise division of two slices
exp_slice
Element-wise exponent of a slice
ln_slice
Element-wise natural logarithm of a slice
max_slice
Element-wise maximum of two slices
min_slice
Element-wise minimum of two slices
mul_scalar_slice
Multiply a slice by a scalar
mul_slices
Element-wise multiplication of two slices
sin_slice
Element-wise sine of a slice
sqrt_slice
Element-wise square root of a slice
sub_slices
Element-wise subtraction of two slices
tan_slice
Element-wise tangent of a slice