This is an alphabetized list of exported methods and functions.

func (A *DenseMatrix) Add(B MatrixRO) error {
func (A *DenseMatrix) AddDense(B *DenseMatrix) error {
func (A *DenseMatrix) Array() []float64 {
func (A *DenseMatrix) Arrays() [][]float64 {
func (A *DenseMatrix) Augment(B *DenseMatrix) (C *DenseMatrix, err error) {
func (A *DenseMatrix) AugmentFill(B, C *DenseMatrix) (err error) {
func (A *DenseMatrix) BufferCol(j int, buf []float64) {
func (A *DenseMatrix) BufferDiagonal(buf []float64) {
func (A *DenseMatrix) BufferRow(i int, buf []float64) {
func (A *DenseMatrix) Cholesky() (L *DenseMatrix, err error) {
func (A *DenseMatrix) ColCopy(j int) []float64 {
func (A *DenseMatrix) Copy() *DenseMatrix {
func (A *DenseMatrix) DenseMatrix() *DenseMatrix {
func (A *DenseMatrix) Det() float64 {
func (A *DenseMatrix) DiagonalCopy() []float64 {
func (A *DenseMatrix) Eigen() (V, D *DenseMatrix, err error) {
func (A *DenseMatrix) ElementMult(B MatrixRO) (Matrix, error) {
func (A *DenseMatrix) ElementMultDense(B *DenseMatrix) (*DenseMatrix, error) {
func (A *DenseMatrix) FillCol(j int, buf []float64) {
func (A *DenseMatrix) FillDiagonal(buf []float64) {
func (A *DenseMatrix) FillRow(i int, buf []float64) {
func (A *DenseMatrix) Get(i int, j int) (v float64) {
func (A *DenseMatrix) GetColVector(j int) *DenseMatrix {
func (A *DenseMatrix) GetMatrix(i, j, rows, cols int) *DenseMatrix {
func (A *DenseMatrix) GetRowVector(i int) *DenseMatrix {
func (A *DenseMatrix) InfinityNorm() (ε float64) {
func (A *DenseMatrix) Inverse() (*DenseMatrix, error) {
func (A *DenseMatrix) L() *DenseMatrix {
func (A *DenseMatrix) LU() (L, U *DenseMatrix, P *PivotMatrix) {
func (A *DenseMatrix) LUInPlace() (P *PivotMatrix) {
func (A *DenseMatrix) Minus(B MatrixRO) (Matrix, error) {
func (A *DenseMatrix) MinusDense(B *DenseMatrix) (*DenseMatrix, error) {
func (A *DenseMatrix) OneNorm() (ε float64) {
func (A *DenseMatrix) Plus(B MatrixRO) (Matrix, error) {
func (A *DenseMatrix) PlusDense(B *DenseMatrix) (*DenseMatrix, error) {
func (A *DenseMatrix) QR() (Q, R *DenseMatrix) {
func (A *DenseMatrix) RowCopy(i int) []float64 {
func (A *DenseMatrix) Scale(f float64) {
func (A *DenseMatrix) ScaleMatrix(B MatrixRO) error {
func (A *DenseMatrix) ScaleMatrixDense(B *DenseMatrix) error {
func (A *DenseMatrix) Set(i int, j int, v float64) {
func (A *DenseMatrix) SetMatrix(i, j int, B *DenseMatrix) {
func (A *DenseMatrix) Solve(b MatrixRO) (*DenseMatrix, error) {
func (A *DenseMatrix) SolveDense(b *DenseMatrix) (*DenseMatrix, error) {
func (A *DenseMatrix) SparseMatrix() *SparseMatrix {
func (A *DenseMatrix) Stack(B *DenseMatrix) (C *DenseMatrix, err error) {
func (A *DenseMatrix) StackFill(B, C *DenseMatrix) (err error) {
func (A *DenseMatrix) String() string { return String(A) }
func (A *DenseMatrix) Subtract(B MatrixRO) error {
func (A *DenseMatrix) SubtractDense(B *DenseMatrix) error {
func (A *DenseMatrix) Symmetric() bool {
func (A *DenseMatrix) Times(B MatrixRO) (Matrix, error) {
func (A *DenseMatrix) TimesDense(B *DenseMatrix) (C *DenseMatrix, err error) {
func (A *DenseMatrix) TimesDenseFill(B, C *DenseMatrix) (err error) {
func (A *DenseMatrix) Trace() float64 { return sum(A.DiagonalCopy()) }
func (A *DenseMatrix) Transpose() *DenseMatrix {
func (A *DenseMatrix) TransposeInPlace() (err error) {
func (A *DenseMatrix) TwoNorm() float64 {
func (A *DenseMatrix) U() *DenseMatrix {
func (A *DenseMatrix) rowSlice(row int) []float64 {
func (A *PivotMatrix) InfinityNorm() float64 { return 1 }
func (A *PivotMatrix) Inverse() *PivotMatrix { return A.Transpose() }
func (A *PivotMatrix) OneNorm() float64      { return float64(A.rows) }
func (A *PivotMatrix) String() string { return String(A) }
func (A *PivotMatrix) TwoNorm() float64      { return math.Sqrt(float64(A.rows)) }
func (A *SparseMatrix) Add(B MatrixRO) error {
func (A *SparseMatrix) AddSparse(B *SparseMatrix) error {
func (A *SparseMatrix) Augment(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) Copy() *SparseMatrix {
func (A *SparseMatrix) DenseMatrix() *DenseMatrix {
func (A *SparseMatrix) Det() float64 {
func (A *SparseMatrix) ElementMult(B MatrixRO) (*SparseMatrix, error) {
func (A *SparseMatrix) ElementMultSparse(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) Get(i, j int) float64 {
func (A *SparseMatrix) GetColIndex(index int) (j int) {
func (A *SparseMatrix) GetColVector(j int) *SparseMatrix {
func (A *SparseMatrix) GetIndex(index int) float64 {
func (A *SparseMatrix) GetMatrix(i, j, rows, cols int) (subMatrix *SparseMatrix) {
func (A *SparseMatrix) GetRowColIndex(index int) (i int, j int) {
func (A *SparseMatrix) GetRowIndex(index int) (i int) {
func (A *SparseMatrix) GetRowVector(i int) *SparseMatrix {
func (A *SparseMatrix) Indices() (out chan int) {
func (A *SparseMatrix) InfinityNorm() (res float64) {
func (A *SparseMatrix) L() *SparseMatrix {
func (A *SparseMatrix) Minus(B MatrixRO) (Matrix, error) {
func (A *SparseMatrix) MinusSparse(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) OneNorm() (res float64) {
func (A *SparseMatrix) Plus(B MatrixRO) (Matrix, error) {
func (A *SparseMatrix) PlusSparse(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) Scale(f float64) {
func (A *SparseMatrix) ScaleAddRow(rd, rs int, f float64) {
func (A *SparseMatrix) ScaleMatrix(B MatrixRO) error {
func (A *SparseMatrix) ScaleMatrixSparse(B *SparseMatrix) error {
func (A *SparseMatrix) ScaleRow(r int, f float64) {
func (A *SparseMatrix) Set(i int, j int, v float64) {
func (A *SparseMatrix) SetIndex(index int, v float64) {
func (A *SparseMatrix) SparseMatrix() *SparseMatrix {
func (A *SparseMatrix) Stack(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) String() string { return String(A) }
func (A *SparseMatrix) Subtract(B MatrixRO) error {
func (A *SparseMatrix) SubtractSparse(B *SparseMatrix) error {
func (A *SparseMatrix) SwapRows(r1, r2 int) {
func (A *SparseMatrix) Symmetric() bool {
func (A *SparseMatrix) Times(B MatrixRO) (Matrix, error) {
func (A *SparseMatrix) TimesSparse(B *SparseMatrix) (*SparseMatrix, error) {
func (A *SparseMatrix) Trace() (res float64) {
func (A *SparseMatrix) Transpose() *SparseMatrix {
func (A *SparseMatrix) TwoNorm() float64 {
func (A *SparseMatrix) U() *SparseMatrix {
func (A *matrix) Cols() int { return A.cols }
func (A *matrix) GetSize() (rows, cols int) {
func (A *matrix) Nil() bool { return A == nil }
func (A *matrix) NumElements() int { return A.rows * A.cols }
func (A *matrix) Rows() int { return A.rows }
func (Arg *DenseMatrix) SVD() (theU, Σ, theV *DenseMatrix, err error) {
func (P *PivotMatrix) ColPivotDense(A *DenseMatrix) (*DenseMatrix, error) {
func (P *PivotMatrix) ColPivotSparse(A *SparseMatrix) (*SparseMatrix, error) {
func (P *PivotMatrix) Copy() *PivotMatrix { return MakePivotMatrix(P.pivots, P.pivotSign) }
func (P *PivotMatrix) DenseMatrix() *DenseMatrix {
func (P *PivotMatrix) Det() float64 { return P.pivotSign }
func (P *PivotMatrix) Get(i, j int) float64 {
func (P *PivotMatrix) Minus(A MatrixRO) (Matrix, error) {
func (P *PivotMatrix) Plus(A MatrixRO) (Matrix, error) {
func (P *PivotMatrix) RowPivotDense(A *DenseMatrix) (*DenseMatrix, error) {
func (P *PivotMatrix) RowPivotSparse(A *SparseMatrix) (*SparseMatrix, error) {
func (P *PivotMatrix) Solve(b MatrixRO) (Matrix, error) {
func (P *PivotMatrix) SparseMatrix() *SparseMatrix {
func (P *PivotMatrix) SwapRows(r1, r2 int) error {
func (P *PivotMatrix) Symmetric() bool {
func (P *PivotMatrix) Times(A MatrixRO) (Matrix, error) {
func (P *PivotMatrix) TimesPivot(A *PivotMatrix) (*PivotMatrix, error) {
func (P *PivotMatrix) Trace() (r float64) {
func (P *PivotMatrix) Transpose() *PivotMatrix {
func (e error_) Error() string {
func (e error_) String() string {
func (m *DenseMatrix) ScaleAddRow(rd int, rs int, f float64) {
func (m *DenseMatrix) ScaleRow(r int, f float64) {
func (m *DenseMatrix) SwapRows(r1 int, r2 int) {
func ApproxEquals(A, B MatrixRO, ε float64) bool {
func BenchmarkTransposeTimes(b *testing.B) {
func Diagonal(d []float64) *DenseMatrix {
func Difference(A, B MatrixRO) (C *DenseMatrix) {
func Equals(A, B MatrixRO) bool {
func Eye(span int) *DenseMatrix {
func Inverse(A MatrixRO) (B Matrix) {
func Kronecker(A, B MatrixRO) (C *DenseMatrix) {
func MakeDenseCopy(A MatrixRO) *DenseMatrix {
func MakeDenseMatrix(elements []float64, rows, cols int) *DenseMatrix {
func MakeDenseMatrixStacked(data [][]float64) *DenseMatrix {
func MakePivotMatrix(pivots []int, pivotSign float64) *PivotMatrix {
func MakeSparseMatrix(elements map[int]float64, rows int, cols int) *SparseMatrix {
func Normals(rows, cols int) *DenseMatrix {
func NormalsSparse(rows int, cols int, n int) *SparseMatrix {
func Numbers(rows, cols int, num float64) *DenseMatrix {
func Ones(rows, cols int) *DenseMatrix {
func ParallelProduct(A, B MatrixRO) (C *DenseMatrix) {
func ParseMatlab(txt string) (A *DenseMatrix, err error) {
func Product(A MatrixRO, Bs ...MatrixRO) (C *DenseMatrix) {
func Scaled(A MatrixRO, f float64) (B *DenseMatrix) {
func String(A MatrixRO) string {
func Sum(A MatrixRO, Bs ...MatrixRO) (C *DenseMatrix) {
func TestAdd(t *testing.T) {
func TestAdd_Sparse(t *testing.T) {
func TestApproximates(t *testing.T) {
func TestAugment(t *testing.T) {
func TestAugment_Sparse(t *testing.T) {
func TestCholesky(t *testing.T) {
func TestColPivot(t *testing.T) {
func TestDet(t *testing.T) {
func TestEigen(t *testing.T) {
func TestElementMult(t *testing.T) {
func TestElementMult_Sparse(t *testing.T) {
func TestEquals(t *testing.T) {
func TestEye(t *testing.T) {
func TestGetMatrix(t *testing.T) {
func TestGetMatrix_Sparse(t *testing.T) {
func TestInverse(t *testing.T) {
func TestKronecker(t *testing.T) {
func TestL(t *testing.T) {
func TestLU(t *testing.T) {
func TestMultipleProduct(t *testing.T) {
func TestNormals(t *testing.T) {
func TestNumbers(t *testing.T) {
func TestOnes(t *testing.T) {
func TestParallelProduct(t *testing.T) {
func TestParse(t *testing.T) {
func TestProduct(t *testing.T) {
func TestQR(t *testing.T) {
func TestRowPivot(t *testing.T) {
func TestSVD(t *testing.T) {
func TestScale(t *testing.T) {
func TestScaleMatrix(t *testing.T) {
func TestSolve(t *testing.T) {
func TestStack(t *testing.T) {
func TestStack_Sparse(t *testing.T) {
func TestSubmatrix(t *testing.T) {
func TestSubtract(t *testing.T) {
func TestSubtract_Sparse(t *testing.T) {
func TestSymmetric(t *testing.T) {
func TestTimesDenseProcs(t *testing.T) {
func TestTimes_Pivot(t *testing.T) {
func TestTimes_Sparse(t *testing.T) {
func TestTrace(t *testing.T) {
func TestTranspose(t *testing.T) {
func TestU(t *testing.T) {
func TestVectorize(t *testing.T) {
func TestZeros(t *testing.T) {
func Transpose(A MatrixRO) (B Matrix) {
func Unvectorize(V MatrixRO, rows, cols int) (A *DenseMatrix) {
func Vectorize(Am MatrixRO) (V *DenseMatrix) {
func Zeros(rows, cols int) *DenseMatrix {
func ZerosSparse(rows int, cols int) *SparseMatrix {
func cdiv(xr float64, xi float64, yr float64, yi float64) (cdivr float64, cdivi float64) {
