import "github.com/gonum/matrix/mat64" // Create a 3x3 matrix of all zeroes m := mat64.NewDense(3, 3, nil)
// Get the element in the second row and third column val := m.At(1, 2) // Set the element in the first row and second column to 5.0 m.Set(0, 1, 5.0)
// Create two matrices to multiply a := mat64.NewDense(3, 2, []float64{1, 2, 3, 4, 5, 6}) b := mat64.NewDense(2, 3, []float64{7, 8, 9, 10, 11, 12}) // Multiply the matrices var c mat64.Dense c.Mul(a, b)This package library can be used for various mathematical computations such as linear algebra, machine learning and data analysis.