Expand description
Vector types and traits.
This module defines the Vector trait and related traits for vector operations:
- VectorView and VectorViewMut for borrowed views
- VectorIndex for index collections
- VectorHost for CPU-resident vectors with direct access
Implementations are provided for:
- NalgebraVec using nalgebra vectors
- FaerVec using faer vectors
CudaVecfor GPU computation (requirescudafeature)
Modules§
Traits§
- Default
Dense Matrix - Marker trait for vectors that have a default associated dense matrix type.
- Vector
- A complete vector abstraction supporting arithmetic operations, norms, and index operations.
- Vector
Common - Common interface for vector-like types, providing access to scalar type, context, and inner representation.
- Vector
Host - A vector hosted on the CPU, supporting direct indexing and slice access.
- Vector
Index - A trait for types that represent a collection of indices into a vector.
- Vector
MutOps ByValue - In-place operations on vectors (addition and subtraction).
- Vector
OpsBy Value - Operations on vectors by value (addition and subtraction).
- Vector
Ref - Operations on a reference to a vector, supporting addition, subtraction, and scalar multiplication.
- Vector
View - A borrowed immutable view of a vector, supporting read-only arithmetic operations.
- Vector
View Mut - A mutable view into a vector, supporting in-place operations and modifications.