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

Link to this function

add(first, second, alpha \\ 1.0, beta \\ 1.0)

Adds two matrices which have either matched rows or columns

Link to this function

argmax(x, atom)

Return argmax for row/column indices.

Link to this function

arrange(s, e, step)

Create a list in the range with the step.

Link to this function

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.

Link to this function

fetch(x, row_indices)

Fetch data of specified list of rows and compose them to Matrex.

Link to this function

flattened(list)

Create a matrex of flattened list.

Link to this function

l2_normalize(x, eps \\ 1.0e-8)

Normalize matrex with L2 norm, that is sqrt sum of squared all elements.

Link to this function

meshgrid(x_range, y_range)

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.

Link to this function

zeros_like(matrex)

Create a matrex that has a same shape of given matrex.