Documentation ¶
Index ¶
- func Add(firstMatrix [][]float64, secondMatrix [][]float64) (result [][]float64)
- func Apply(matrix [][]float64, function func(x float64) float64) (result [][]float64)
- func CofactorMatrix(matrix [][]float64) (result [][]float64)
- func ComplexApply(matrix [][]complex128, function func(x complex128) complex128) (result [][]complex128)
- func Concatenate(firstMatrix [][]float64, secondMatrix [][]float64, axis int) (result [][]float64)
- func ConjugateMatrix(matrix [][]complex128) (result [][]complex128)
- func CumulativeSum(matrix [][]float64, axis int) (result []float64, ok bool)
- func Determinant(matrix [][]float64) (result float64)
- func Diagonal(matrix [][]float64) (result []float64, ok bool)
- func Divide(firstMatrix [][]float64, secondMatrix [][]float64) [][]float64
- func DotProduct(firstMatrix [][]float64, secondMatrix [][]float64) (result [][]float64)
- func Eye(args ...int) (result [][]float64, ok bool)
- func Inverse(matrix [][]float64) [][]float64
- func LowerTriangle(matrix [][]float64) (result [][]float64)
- func Max(matrix [][]float64, axis int) (result []float64, ok bool)
- func Mean(matrix [][]float64, axis int) (result []float64, ok bool)
- func Median(matrix [][]float64, axis int) (result []float64, ok bool)
- func Min(matrix [][]float64, axis int) (result []float64, ok bool)
- func MinorMatrix(matrix [][]float64) (result [][]float64)
- func MultTranspose(firstMatrix [][]float64, secondMatrix [][]float64) (result [][]float64)
- func Multiply(firstMatrix [][]float64, secondMatrix [][]float64) (result [][]float64)
- func MultiplyByScalar(matrix [][]float64, scalar float64) [][]float64
- func Subtract(firstMatrix [][]float64, secondMatrix [][]float64) [][]float64
- func Sum(matrix [][]float64, axis int) (result []float64, ok bool)
- func SumAll(m [][]float64) (result float64)
- func Take(matrix [][]float64, indices []int) (result []float64, ok bool)
- func Transpose(matrix [][]float64) (result [][]float64)
- func UpperTriangle(matrix [][]float64) (result [][]float64)
- func Where(matrix [][]float64, function func(x float64) bool) (result []float64)
- func Zeros(args []int) (result [][]float64, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply a function to all the elements of a matrix, the function will receive a float64 as param and returns a float64
func CofactorMatrix ¶
Returns the Cofactor Matrix
func ComplexApply ¶
func ComplexApply(matrix [][]complex128, function func(x complex128) complex128) (result [][]complex128)
Apply a function to a complex matrix the function will receive a complex128 and returns a complex128
func Concatenate ¶
Concatenate two matrices along with their axises axis=0 => row-wise axis=1 => column-wise
func ConjugateMatrix ¶
func ConjugateMatrix(matrix [][]complex128) (result [][]complex128)
Returns the Congugate Matrix
func CumulativeSum ¶
Cumulative Sum of Matrix along with axis axis=0 => row-wise axis=1 => column-wise
func Determinant ¶
Calculates the determinant of the matrix
func DotProduct ¶
Dot (Inner) product
func Eye ¶
Returns an array where diagonal elements are 1 and remaining positions are 0 If it has been passed one parameter, it yields a square matrix Two parameters define the size of the matrix
func LowerTriangle ¶
Lower Triangle Matrix
func MinorMatrix ¶
Minor matrix of a given matrix
func MultTranspose ¶
Multiply on matrix by the Transposepose of the second matrix
func MultiplyByScalar ¶
Returns the rm of multiply all the elements of a matrix by a float number
func Take ¶
Take the elements of the matrix given in indices uses so called fancy indexing to determine the positions of the array
func UpperTriangle ¶
Upper Triangle of Matrix
Types ¶
This section is empty.