Documentation ¶
Index ¶
- type Matrix
- func (m *Matrix) AddFromMatrix(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) Create(col int, row int) Matrix
- func (m *Matrix) DotProduct(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) FromArray(array []float64)
- func (m *Matrix) HadProduct(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) Map(f func(float64) float64) Matrix
- func (m *Matrix) Multiply(n float64) Matrix
- func (m *Matrix) Randomize()
- func (m *Matrix) StaticAddFromMatrix(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) StaticDotProduct(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) StaticHadProduct(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) StaticMap(f func(float64) float64) Matrix
- func (m *Matrix) StaticRandomize() Matrix
- func (m *Matrix) StaticSuptractMatrix(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) StaticTranspose() (Matrix, error)
- func (m *Matrix) SuptractMatrix(sMatrix Matrix) (Matrix, error)
- func (m *Matrix) Transpose() (Matrix, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct { Matrix [][]float64 // contains filtered or unexported fields }
Matrix it works only with float64 type
func NewMatrix ¶
NewMatrix function for creating a Matrix after import that package you can use it by type........ myMatrix := Matrix.NewMatrix(1, 3)
func (*Matrix) AddFromMatrix ¶
AddFromMatrix is a function to sum two matrices
func (*Matrix) Create ¶
Create is a function to create new matrix....if it already created the matrix gonna change completley
func (*Matrix) DotProduct ¶
DotProduct is a dot product function =
func (*Matrix) HadProduct ¶
HadProduct is hadamard product
func (*Matrix) Map ¶
Map takes a function and preform the function for every single value in the matrix
func (*Matrix) Multiply ¶
Multiply is a function to multiply a value by every single value in the matrix
func (*Matrix) Randomize ¶
func (m *Matrix) Randomize()
Randomize is function to randomize the matrix
func (*Matrix) StaticAddFromMatrix ¶
StaticAddFromMatrix is a static version of SuptractMatrix()
func (*Matrix) StaticDotProduct ¶
StaticDotProduct it's static version of DotProduct
func (*Matrix) StaticHadProduct ¶
StaticHadProduct is a static version of HadProduct()
func (*Matrix) StaticRandomize ¶
StaticRandomize is a static version of Randomize()
func (*Matrix) StaticSuptractMatrix ¶
StaticSuptractMatrix is a static version of SuptractMatrix()
func (*Matrix) StaticTranspose ¶
StaticTranspose is a static version of Transpose()
func (*Matrix) SuptractMatrix ¶
SuptractMatrix is a function that subtract two matrices from each other