Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 678 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 678 Bytes

matrix

This repository contains the operations with matrixes. The current matrix is a type Matrix [][]int64

Current features

  • Sum
  • Substraction
  • Multiply
  • MultiplyByScalar
  • Transpose
  • IsSquared
  • Determinant
  • LU Decomposition (work in progress)
  • Zero (creates a matrix R x C and all entries are 0)
  • RandInt (creates a matrix R x C where all entries are choices from 0 - 255)

Other methods

  • Get (retrieve a value given a row and column)
  • Equals
  • Cols
  • Rows

Tests

To run unit tests

make test or go test ./...

To run benchmark tests

make bench or go test ./... -bench=.