This library provides basic implementation of linear algebra "vector" data structure with basic operations. It was made as small test assignment. So only basic things has been implemented.
Supported operations:
- Length
- Add
- Subtract
- ScalarMultiply
- DotProduct
- CrossProduct
Almost all functions within this package panics when vectors used in a wrong way. For example: It panics if 2 vectors has different dimensions. For more information see package documentation.
Just run go test -v -race -cover ./...