Versions in this module Expand all Collapse all v1 v1.0.0 Jan 12, 2022 Changes in this version + func GenerateRandomPartial(reader io.Reader, n int, ignore ByteIgnore, idIgnore RowIgnore) (Matrix, Matrix) + func IgnoreNoBytes(row, col int) bool + func IgnoreNoRows(row int) bool + func LessThan(i, j Row) bool + type ByteIgnore func(int, int) bool + func IgnoreBytes(positions ...int) ByteIgnore + type DeductiveMatrix struct + Input IncrementalMatrix + Output IncrementalMatrix + func NewDeductiveMatrix(n int) *DeductiveMatrix + func (dm *DeductiveMatrix) Assert(in, out Row) (learned bool) + func (dm *DeductiveMatrix) Dup() *DeductiveMatrix + func (dm *DeductiveMatrix) FullyDefined() bool + func (dm *DeductiveMatrix) Inverse() Matrix + func (dm *DeductiveMatrix) Matrix() Matrix + type IncrementalMatrix struct + func NewIncrementalMatrix(n int) IncrementalMatrix + func (im *IncrementalMatrix) Add(raw Row) bool + func (im *IncrementalMatrix) Dup() IncrementalMatrix + func (im *IncrementalMatrix) FullyDefined() bool + func (im *IncrementalMatrix) Inverse() Matrix + func (im *IncrementalMatrix) IsIn(in Row) bool + func (im *IncrementalMatrix) Len() int + func (im *IncrementalMatrix) Less(i, j int) bool + func (im *IncrementalMatrix) Matrix() Matrix + func (im *IncrementalMatrix) NovelRow(n int) Row + func (im *IncrementalMatrix) NovelSize() int + func (im *IncrementalMatrix) Row(n int) Row + func (im *IncrementalMatrix) Size() int + func (im *IncrementalMatrix) Swap(i, j int) + type Matrix []Row + func GenerateEmpty(n, m int) Matrix + func GenerateFull(n, m int) Matrix + func GenerateIdentity(n int) Matrix + func GeneratePartialIdentity(n int, ignore RowIgnore) Matrix + func GeneratePermutationMatrix(permutation []int) Matrix + func GenerateRandom(reader io.Reader, n int) Matrix + func GenerateTrueRandom(reader io.Reader, n int) Matrix + func (e Matrix) Add(f Matrix) Matrix + func (e Matrix) Compose(f Matrix) Matrix + func (e Matrix) Dup() Matrix + func (e Matrix) Equals(f Matrix) bool + func (e Matrix) FindPivot(row, col int) int + func (e Matrix) GoString() string + func (e Matrix) Invert() (Matrix, bool) + func (e Matrix) LeftStretch() Matrix + func (e Matrix) Mul(f Row) Row + func (e Matrix) NullSpace() (basis []Row) + func (e Matrix) OctaveString() string + func (e Matrix) RightStretch() Matrix + func (e Matrix) Size() (int, int) + func (e Matrix) String() string + func (e Matrix) Trace() (out byte) + func (e Matrix) Transpose() Matrix + type Row []byte + func GenerateRandomNonZeroRow(reader io.Reader, n int) Row + func GenerateRandomRow(reader io.Reader, n int) Row + func NewRow(n int) Row + func (e Row) Add(f Row) Row + func (e Row) Cancels(f Row) bool + func (e Row) DotProduct(f Row) bool + func (e Row) Dup() Row + func (e Row) Equals(f Row) bool + func (e Row) GetBit(i int) byte + func (e Row) Height() int + func (e Row) IsZero() bool + func (e Row) Mul(f Row) Row + func (e Row) OctaveString() string + func (e Row) SetBit(i int, x bool) + func (e Row) Size() int + func (e Row) String() string + func (e Row) Weight() (w int) + type RowIgnore func(int) bool + func IgnoreRows(positions ...int) RowIgnore