matrix

package
v0.0.0-...-7b6cf24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2012 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Packages providing basic linear algebra operations

Index

Constants

View Source
const (
	Cols = true
	Rows = !Cols
	Inf  = int(^uint(0) >> 1)
	Fro  = -Inf - 1
)

Variables

View Source
var (
	Precision int          = 8
	Format    byte         = 'e'
	Pad       map[byte]int = map[byte]int{'e': 6, 'f': 2, 'g': 6, 'E': 6, 'F': 2, 'G': 6}
)

Functions

This section is empty.

Types

type ApplyFunc

type ApplyFunc func(r, c int, v float64) float64

type FilterFunc

type FilterFunc func(r, c int, v float64) bool

type Matrix

type Matrix interface {
	Copy() Matrix
	Dims() (int, int)
	Set(r, c int, v float64) error
	At(r, c int) (float64, error)
	Norm() float64
	T() Matrix
	Det() float64
	Add(b Matrix) Matrix
	Sub(b Matrix) Matrix
	MulElem(b Matrix) Matrix
	Equals(b Matrix) bool
	EqualsApprox(b Matrix, error float64) bool
	Scalar(f float64) Matrix
	Sum() (s float64)
	Dot(b Matrix) Matrix
	Inner(b Matrix) Matrix
	Stack(b Matrix) Matrix
	Augment(b Matrix) Matrix
	Filter(f FilterFunc) Matrix
}

Directories

Path Synopsis
Sparse matrix operations
Sparse matrix operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL