matrex_utils v0.0.1 MatrexUtils
Utility functions to supplement Matrex.
Link to this section Summary
Functions
Adds two matrices which have either matched rows or columns
Return argmax for row/column indices.
Create a list in the range with the step.
Broadcast matrix rows or columns to align to target shape. Only accepts broadcasting rows or columns at one time.
Fetch data of specified list of rows and compose them to Matrex.
Create a matrex of flattened list.
Normalize matrex with L2 norm, that is sqrt sum of squared all elements.
Create a mesh grid 2d array in the rectangle.
Create a matrex braced with []
Get sum of rows or cols and compose them to Matrex.
Create a matrex that has a same shape of given matrex.
Link to this section Functions
add(first, second, alpha \\ 1.0, beta \\ 1.0)
Adds two matrices which have either matched rows or columns
argmax(x, atom)
Return argmax for row/column indices.
arrange(s, e, step)
Create a list in the range with the step.
broad_cast(matrex, atom, target_columns)
Broadcast matrix rows or columns to align to target shape. Only accepts broadcasting rows or columns at one time.
fetch(x, row_indices)
Fetch data of specified list of rows and compose them to Matrex.
flattened(list)
Create a matrex of flattened list.
l2_normalize(x, eps \\ 1.0e-8)
Normalize matrex with L2 norm, that is sqrt sum of squared all elements.
meshgrid(x_range, y_range)
Create a mesh grid 2d array in the rectangle.
new(list)
Create a matrex braced with []
sum(x, atom)
Get sum of rows or cols and compose them to Matrex.
zeros_like(matrex)
Create a matrex that has a same shape of given matrex.