Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 853 Bytes

File metadata and controls

24 lines (18 loc) · 853 Bytes

Vector

test Go Report Card codecov

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.

Test

Just run go test -v -race -cover ./...