matrix

package
v0.0.0-...-736f5eb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package Matrix provides some methods to use with Matrix

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {

	// Matrix stored as a flat array: Aij = Elements[i*step + j]
	Elements []float64
	// contains filtered or unexported fields
}

func Add

func Add(A *Matrix, B *Matrix) *Matrix

func MakeMatrix

func MakeMatrix(Elements []float64, rows, cols int) *Matrix

func Multiply

func Multiply(A *Matrix, B *Matrix) *Matrix

func Substract

func Substract(A *Matrix, B *Matrix) *Matrix

func (*Matrix) CountCols

func (A *Matrix) CountCols() int

func (*Matrix) CountRows

func (A *Matrix) CountRows() int

func (*Matrix) GetElm

func (A *Matrix) GetElm(i int, j int) float64

func (*Matrix) SetElm

func (A *Matrix) SetElm(i int, j int, v float64)

Jump to

Keyboard shortcuts

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