Common matrix operations in Go