Documentation
¶
Overview ¶
simple matrix package
Index ¶
- type Elem
- type FloatMatrix
- func (mat *FloatMatrix) At(i, j int) float64
- func (mat *FloatMatrix) Clear()
- func (mat *FloatMatrix) Col() int
- func (mat *FloatMatrix) Elem() []float64
- func (a *FloatMatrix) Eq(b *FloatMatrix) bool
- func (mat *FloatMatrix) Find(num float64, p chan image.Point)
- func (matA *FloatMatrix) Mul(matB *FloatMatrix) *FloatMatrix
- func (mat *FloatMatrix) Row() int
- func (mat *FloatMatrix) Set(i, j int, v float64)
- func (mat *FloatMatrix) Size() (int, int)
- func (mat *FloatMatrix) String() string
- func (mat *FloatMatrix) Transpose() *FloatMatrix
- type Mat
- type Mat2
- type Matrix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatMatrix ¶
type FloatMatrix struct {
// contains filtered or unexported fields
}
func NewFloatMatrix ¶
func NewFloatMatrix(m, n int) *FloatMatrix
New return a new FloatMatrix with the given size
func NewFloatMatrixFromElements ¶
func NewFloatMatrixFromElements(m, n int, elements []float64) *FloatMatrix
NewFromElements return a new FloatMatrix with elemtnts
func (*FloatMatrix) At ¶
func (mat *FloatMatrix) At(i, j int) float64
func (*FloatMatrix) Col ¶
func (mat *FloatMatrix) Col() int
func (*FloatMatrix) Elem ¶
func (mat *FloatMatrix) Elem() []float64
func (*FloatMatrix) Eq ¶
func (a *FloatMatrix) Eq(b *FloatMatrix) bool
func (*FloatMatrix) Mul ¶
func (matA *FloatMatrix) Mul(matB *FloatMatrix) *FloatMatrix
func (*FloatMatrix) Row ¶
func (mat *FloatMatrix) Row() int
func (*FloatMatrix) Size ¶
func (mat *FloatMatrix) Size() (int, int)
func (*FloatMatrix) String ¶
func (mat *FloatMatrix) String() string
func (*FloatMatrix) Transpose ¶
func (mat *FloatMatrix) Transpose() *FloatMatrix
Click to show internal directories.
Click to hide internal directories.