Documentation
¶
Overview ¶
Package matrix implements common matrix operations.
Index ¶
- type Matrix
- func (A Matrix) Add(B Matrix) (C Matrix)
- func (A Matrix) Adj() (B Matrix)
- func (A Matrix) Cols() (n int)
- func (A Matrix) Det() float64
- func (A Matrix) ForEach(f func(i, j int))
- func (A Matrix) Inv() (B Matrix)
- func (A Matrix) Mul(B Matrix) (C Matrix)
- func (A Matrix) Rows() (m int)
- func (A Matrix) ScalarMul(b float64) (C Matrix)
- func (A Matrix) Sub(B Matrix) (C Matrix)
- func (A Matrix) Trans() (B Matrix)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix [][]float64
Matrix is an m by n matrix of m rows and n columns.
Click to show internal directories.
Click to hide internal directories.