Skip to main content

Module vector

Module vector 

Source
Expand description

Vector types and traits.

This module defines the Vector trait and related traits for vector operations:

Implementations are provided for:

  • NalgebraVec using nalgebra vectors
  • FaerVec using faer vectors
  • CudaVec for GPU computation (requires cuda feature)

Modules§

faer_serial
nalgebra_serial

Traits§

DefaultDenseMatrix
Marker trait for vectors that have a default associated dense matrix type.
Vector
A complete vector abstraction supporting arithmetic operations, norms, and index operations.
VectorCommon
Common interface for vector-like types, providing access to scalar type, context, and inner representation.
VectorHost
A vector hosted on the CPU, supporting direct indexing and slice access.
VectorIndex
A trait for types that represent a collection of indices into a vector.
VectorMutOpsByValue
In-place operations on vectors (addition and subtraction).
VectorOpsByValue
Operations on vectors by value (addition and subtraction).
VectorRef
Operations on a reference to a vector, supporting addition, subtraction, and scalar multiplication.
VectorView
A borrowed immutable view of a vector, supporting read-only arithmetic operations.
VectorViewMut
A mutable view into a vector, supporting in-place operations and modifications.