Numerix v0.4.1 Numerix.LinearAlgebra

Linear algebra functions used for vector operations, matrix factorization and matrix transformation.

Summary

Functions

The sum of the products of two vectors

The L1 norm of a vector, also known as Manhattan norm

The L2 norm of a vector, also known as Euclidean norm

Multiplies a vector with another. Returns a stream of the products

The p-norm of a vector

Subtracts a vector from another. Returns a stream of the differences

Functions

dot_product(vector1, vector2)

Specs

dot_product([number], [number]) :: Numerix.Common.maybe_float

The sum of the products of two vectors.

l1_norm(vector)

The L1 norm of a vector, also known as Manhattan norm.

l2_norm(vector)

The L2 norm of a vector, also known as Euclidean norm.

multiply(vector1, vector2)

Specs

multiply([number], [number]) :: Numerix.Common.maybe_vector

Multiplies a vector with another. Returns a stream of the products.

norm(p, vector)

The p-norm of a vector.

subtract(vector1, vector2)

Specs

subtract([number], [number]) :: Numerix.Common.maybe_vector

Subtracts a vector from another. Returns a stream of the differences.