braincore.math module#
|
Get the dtype of a. |
|
Check if the array is a floating point array. |
|
Check if the array is an integer array. |
|
Relative error exponential, |
|
Flattens input by reshaping it into a one-dimensional tensor. |
|
Expands a dimension of the input tensor over multiple dimensions. |
|
Remove the diagonal of the matrix. |
|
Clip the tensor by the norm of the tensor. |
|
Convert the numpy array to jax array. |
|
Convert the array to numpy array. |
|
Create a tree with the same structure as the input tree, but with zeros in each leaf. |
|
Create a tree with the same structure as the input tree, but with ones in each leaf. |
|
|
|
|
|
|
|
Parse a tensor shape to dictionary mapping axes names to their lengths. |