Module vector

Module vector 

Source
Expand description

§Vector Representation and Operations

This module defines a Vector type and operations for real numbers. It includes basic arithmetic (addition, subtraction, scalar multiplication), dot product, norm, and a function to compute the mean vector from a slice of vectors. When the input size exceeds a threshold, Rayon is used to perform operations in parallel for better performance.

Structs§

Vector
A vector of real numbers.

Constants§

PARALLEL_THRESHOLD
Size threshold for enabling parallel computation.

Traits§

Real
Trait for basic operations on real numbers.

Functions§

mean_vector
Compute the mean vector from a slice of vectors.