matrex v0.1.0 Matrex View Source
Performs fast operations on matrices using native C code and CBLAS library.
Link to this section Summary
Functions
Adds two matrices
Applies the given function on each element of the matrix
Applies function to elements of two matrices and returns matrix of function results
Returns the index of the biggest element
Get element of a matrix at given zero-based position
Divides two matrices
Matrix multiplication
Matrix multiplication
Matrix multiplication where the second matrix needs to be transposed
Matrix multiplication where the first matrix needs to be transposed
Create eye square matrix of given size
Create square matrix filled with given value
Create matrix filled with given value
Return first element of a matrix
Displays a visualization of the matrix. Set the second parameter to true to show full numbers. Otherwise, they are truncated
Creates “magic” n*n matrix, where sums of all dimensions are equal
Maximum element in a matrix
Elementwise multiplication of two matrices
Elementwise multiplication of a scalar
Creates new matrix from list of lists
Creates a new matrix with values provided by the given function
Create square matrix filled with ones
Create matrix filled with ones
Create square matrix of random floats
Create matrix of random floats in [0, 1] range
Return size of matrix as {rows, cols}
Substracts two matrices
Substracts the second matrix from the first
Sums all elements
Converts to flat list
Converts to list of lists
Transposes a matrix
Create square matrix of zeros
Create matrix of zeros of the specified size
Link to this section Functions
Adds two matrices
Applies the given function on each element of the matrix
Applies function to elements of two matrices and returns matrix of function results.
Returns the index of the biggest element.
Get element of a matrix at given zero-based position.
Divides two matrices
Matrix multiplication
Matrix multiplication
Matrix multiplication where the second matrix needs to be transposed.
Matrix multiplication where the first matrix needs to be transposed.
Create eye square matrix of given size
Create square matrix filled with given value
Create matrix filled with given value
Return first element of a matrix.
Displays a visualization of the matrix. Set the second parameter to true to show full numbers. Otherwise, they are truncated.
Creates “magic” n*n matrix, where sums of all dimensions are equal
Maximum element in a matrix.
Elementwise multiplication of two matrices
Elementwise multiplication of a scalar
Creates new matrix from list of lists.
new(non_neg_integer(), non_neg_integer(), function()) :: binary()
new(non_neg_integer(), non_neg_integer(), function()) :: binary()
new(non_neg_integer(), non_neg_integer(), [list()]) :: binary()
Creates a new matrix with values provided by the given function
Create square matrix filled with ones.
Create matrix filled with ones.
Create square matrix of random floats.
Create matrix of random floats in [0, 1] range.
Return size of matrix as {rows, cols}
Substracts two matrices
Substracts the second matrix from the first
Sums all elements.
Converts to flat list
Converts to list of lists
Transposes a matrix
Create square matrix of zeros
Create matrix of zeros of the specified size.