Documentation ¶
Index ¶
- type Matrix
- func Identity(n int) *Matrix
- func LoadFromArray(size1, size2 int, data []float64) *Matrix
- func LoadFromStr(str string) *Matrix
- func New(i, j int) *Matrix
- func NewS(n int) *Matrix
- func Ones(n, m int) *Matrix
- func Product(A, B *Matrix) (*Matrix, error)
- func Rand(n, m int) *Matrix
- func Zeros(n, m int) *Matrix
- func (m *Matrix) Add(m2 *Matrix) error
- func (m *Matrix) AddConstant(x float64)
- func (m *Matrix) At(i, j int) float64
- func (m *Matrix) Col(c int) *vector.Vector
- func (m *Matrix) Copy() *Matrix
- func (m *Matrix) DivElement(m2 *Matrix) error
- func (m *Matrix) Fprintf(w io.Writer, format string)
- func (m *Matrix) Get(i, j int) float64
- func (m *Matrix) MulElement(m2 *Matrix) error
- func (m *Matrix) Norm1() float64
- func (m *Matrix) Norm2() float64
- func (m *Matrix) NormInf() float64
- func (m *Matrix) Print()
- func (m *Matrix) Printf(format string)
- func (m *Matrix) Row(r int) *vector.Vector
- func (m *Matrix) Scale(x float64)
- func (m *Matrix) Set(i, j int, v float64)
- func (m *Matrix) Shape() (int, int)
- func (m *Matrix) Singular() int
- func (m *Matrix) Sub(m2 *Matrix) error
- func (m *Matrix) SwapCols(i, j int) error
- func (m *Matrix) SwapRows(i, j int) error
- func (m *Matrix) T() *Matrix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
Matrix matrix
func LoadFromArray ¶
LoadFromArray load from a array
func LoadFromStr ¶
LoadFromStr load from str load from [1 2 3; 4 5 6; 7 8 9]
func (*Matrix) AddConstant ¶
AddConstant two matrix element mul
func (*Matrix) DivElement ¶
DivElement two matrix element mul
func (*Matrix) MulElement ¶
MulElement two matrix element mul
Click to show internal directories.
Click to hide internal directories.