Documentation ¶
Index ¶
- func AddConst(val float64, m *mat.Dense) (*mat.Dense, error)
- func ColsMax(cols int, m *mat.Dense) ([]float64, error)
- func ColsMean(cols int, m *mat.Dense) ([]float64, error)
- func ColsMin(cols int, m *mat.Dense) ([]float64, error)
- func ColsStdev(cols int, m *mat.Dense) ([]float64, error)
- func MakeConstant(rows, cols int, val float64) (*mat.Dense, error)
- func MakeRandom(rows, cols int, min, max float64) (*mat.Dense, error)
- func RowsMax(rows int, m *mat.Dense) ([]float64, error)
- func RowsMin(rows int, m *mat.Dense) ([]float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConst ¶
AddConst adds a constant value to every element of matrix It modifies the matrix m passed in as a paramter. AddConstant fails with error if empty matrix is supplied
func ColsMax ¶
ColsMax returns a slice of max values of first cols number of matrix columns It returns error if passed in matrix is nil, has zero size or requested number of columns exceeds the number of columns in the matrix passed in as parameter.
func ColsMean ¶
ColsMean returns a slice of mean values of first cols matrix columns It returns error if passed in matrix is nil or has zero size or requested number of columns exceeds the number of columns in matrix m.
func ColsMin ¶
ColsMin returns a slice of min values of first cols number of matrix columns It returns error if passed in matrix is nil, has zero size or requested number of columns exceeds the number of columns in the matrix passed in as parameter.
func ColsStdev ¶
ColsStdev returns a slice of standard deviations of first cols matrix columns It returns error if passed in matrix is nil or has zero size or requested number of columns exceeds the number of columns in matrix m.
func MakeConstant ¶
MakeConstant returns a matrix of rows x cols whose each element is set to val. MakeConstant fails if invalid matrix dimensions are requested.
func MakeRandom ¶
MakeRandom creates a new matrix with provided number of rows and columns which is initialized to random numbers uniformly distributed in interval [min, max]. MakeRandom fails if non-positive matrix dimensions are requested.
Types ¶
This section is empty.