Versions in this module Expand all Collapse all v2 v2.1.2 Oct 27, 2022 Changes in this version + const DefaultEpsilon + var ErrDimensionMismatch = errors.New("dimension mismatch") + var ErrPolyRegArraysSameLength = errors.New("polynomial array inputs must be the same length") + var ErrSingularValue = errors.New("singular value") + func Poly(xvalues, yvalues []float64, degree int) ([]float64, error) + type Matrix struct + func Eye(n int) *Matrix + func Identity(order int) *Matrix + func New(rows, cols int, values ...float64) *Matrix + func NewFromArrays(a [][]float64) *Matrix + func Ones(rows, cols int) *Matrix + func Zero(rows, cols int) *Matrix + func (m *Matrix) Arrays() [][]float64 + func (m *Matrix) Augment(m2 *Matrix) (*Matrix, error) + func (m *Matrix) Col(col int) Vector + func (m *Matrix) Copy() *Matrix + func (m *Matrix) Diagonal() *Matrix + func (m *Matrix) DiagonalVector() Vector + func (m *Matrix) Each(action func(row, col int, value float64)) + func (m *Matrix) Epsilon() float64 + func (m *Matrix) Equals(other *Matrix) bool + func (m *Matrix) Get(row, col int) float64 + func (m *Matrix) Inverse() (*Matrix, error) + func (m *Matrix) IsSquare() bool + func (m *Matrix) IsSymmetric() bool + func (m *Matrix) L() *Matrix + func (m *Matrix) LU() (l, u, p *Matrix) + func (m *Matrix) Multiply(m2 *Matrix) (m3 *Matrix, err error) + func (m *Matrix) Pivotize() *Matrix + func (m *Matrix) QR() (q, r *Matrix) + func (m *Matrix) Round() *Matrix + func (m *Matrix) Row(row int) Vector + func (m *Matrix) ScaleRow(row int, scale float64) + func (m *Matrix) Set(row, col int, val float64) + func (m *Matrix) Size() (rows, cols int) + func (m *Matrix) String() string + func (m *Matrix) SubMatrix(i, j, rows, cols int) *Matrix + func (m *Matrix) SwapRows(i, j int) + func (m *Matrix) Times(m2 *Matrix) (*Matrix, error) + func (m *Matrix) Transpose() *Matrix + func (m *Matrix) U() *Matrix + func (m *Matrix) WithEpsilon(epsilon float64) *Matrix + type Vector []float64 + func (v Vector) DotProduct(v2 Vector) (result float64, err error) Other modules containing this package github.com/ClarkKenty/go-chart