# Module flechasdb::linalg

source ·
Expand description

Provides basic linear algebra operations.

## Functions

- add_in
  Adds a vector to another vector in place.
- dot
  Calculates the dot (inner) product of given two vectors.
- dot_naive
  Calculates the dot (inner) product of given two vectors.
- max_abs
  Locates the maximum absoulte value in a given vector.
- max_abs_naive
  Locates the maximum absolute value in a given vector.
- min
  Locates the minimum value in a given vector.
- min_naive
  Locates the minimum value in a given vector.
- norm2
  Calculates the Euclidean norm of a given vector.
- norm2_naive
  Calculates the Euclidean norm of a given vector.
- norm2_naive_check
  Calculates the Euclidean norm of a given vector.
- scale_in
  Multiplies a scalar value to a given vector in place.
- scale_in_naive
  Multiplies a scalar value to a given vector in place.
- subtract
  Subtracts a vector from another vector.
- subtract_in
  Subtracts a vector from another vector in place.
- subtract_in_naive
  Subtracts a vector from another vector in place.
- sum
  Sums all the elements in a give vector.
- sum_naive
  Sums all the elements in a given vector.