gustaf.utils.arr#
gustaf/gustaf/utils/arr.py.
Useful functions for array / point operations. Named arr, since array is python library and it sounds funny.
Functions
|
Return bounds. |
|
Returns diagonal vector of the bounds. |
|
Returns mean of the bounds. |
|
Returns norm of the bounds. |
|
Similar to unique_rows, but if data type is floats, use this one. |
|
Cross product for two 3D arrays. |
|
|
|
Given int, float, np.ndarray, tuple, list, returns an array with n_len len(). |
|
Tuple/list of given shapes, iterates and checks with is_shape. |
|
Checks if arr matches given shape. |
|
Make given array like object a c contiguous np.ndarray. |
|
Rotates given arrays. |
|
Compute rotation matrix. |
|
Compute rotation matrix given the axis of rotation. |
|
Select array with ranges of each column. |
|
Find unique rows using np.unique, but apply tricks. |