Documentation ¶
Overview ¶
Sparse matrix operations
N.B. There is fairly extensive use of unrecovered panics in sparse to avoid unreadable matrix formulae.
Index ¶
- Variables
- func Init()
- type Sparse
- func (self *Sparse) Add(b *Sparse) (m *Sparse)
- func (self *Sparse) Apply(f matrix.ApplyFunc) (m *Sparse)
- func (self *Sparse) ApplyAll(f matrix.ApplyFunc) (m *Sparse)
- func (self *Sparse) At(r, c int) (v float64)
- func (self *Sparse) Augment(b *Sparse) (m *Sparse)
- func (self *Sparse) Clean() (m *Sparse)
- func (self *Sparse) CleanError(error float64) (m *Sparse)
- func (self *Sparse) Copy() (m *Sparse)
- func (self *Sparse) Det() (d float64)
- func (self *Sparse) Dims() (r, c int)
- func (self *Sparse) Dot(b *Sparse) (p *Sparse)
- func (self *Sparse) Elements() (a []float64)
- func (self *Sparse) Equals(b *Sparse) bool
- func (self *Sparse) EqualsApprox(b *Sparse, error float64) bool
- func (self *Sparse) Filter(f matrix.FilterFunc) (m *Sparse)
- func (self *Sparse) Inner(b *Sparse) (p float64)
- func (self *Sparse) Max() (m float64)
- func (self *Sparse) MaxAxis(cols bool) (m *Sparse)
- func (self *Sparse) Min() (m float64)
- func (self *Sparse) MinAxis(cols bool) (m *Sparse)
- func (self *Sparse) MulElem(b *Sparse) (m *Sparse)
- func (self *Sparse) Norm(ord int) (n float64)
- func (self *Sparse) Scalar(f float64) (m *Sparse)
- func (self *Sparse) Set(r, c int, v float64)
- func (self *Sparse) Stack(b *Sparse) (m *Sparse)
- func (self *Sparse) String() (s string)
- func (self *Sparse) Sub(b *Sparse) (m *Sparse)
- func (self *Sparse) Sum() (s float64)
- func (self *Sparse) SumAxis(cols bool) (m *Sparse)
- func (self *Sparse) T() (m *Sparse)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxProcs int // Number of goroutines to run concurrently when multiplyin matrices Margin int = 3 // Number of columns/rows visible returned by String BufferLen int = 100 )
View Source
var GrowFraction int = 10
Functions ¶
Types ¶
type Sparse ¶
type Sparse struct {
// contains filtered or unexported fields
}
Sparse matrix type
func Elements ¶
Return of the non-zero elements of a set of matrices in column major order as a column vector.
func (*Sparse) CleanError ¶
Clean elements within error of zero from a matrix
func (*Sparse) Elements ¶
Return of the non-zero elements of the matrix in column major order as an array.
func (*Sparse) EqualsApprox ¶
Test for approximate equality of two matrices, tolerance for equality given by error
func (*Sparse) Filter ¶
func (self *Sparse) Filter(f matrix.FilterFunc) (m *Sparse)
Return a matrix with all elements at (r, c) set to zero where FilterFunc(r, c) returns false
Click to show internal directories.
Click to hide internal directories.