enp#
from etils import enp
Numpy API.
When possible, utils are meant to work with both numpy and jax.numpy.
All symbols#
Module#
Numpy API. |
|
Compat utils between TF/Torch/Numpy/Jax. |
|
Dtype utils. |
|
|
|
Typing utils. |
Class#
Structure containing shape/dtype. |
|
Special type indicating an unconstrained type. |
|
DType which can represent any dtype. |
|
Generic float dtype (float32, float64, bfloat16,…). |
|
Generic int dtype (int32, int64, uint8,…). |
|
Casting mode when converting to array. |
|
DType wrapper. |
|
Raw numpy dtype. |
|
Metaclass to create array aliases. |
|
Function#
Compute angle between 2 vectors, unsigned. |
|
Dot product on the last dimension, with broadcasting support. |
|
Check and normalize arrays. |
|
|
|
|
|
Like |
|
Returns the torch dtype for the given numpy dtype. |
|
Returns the numpy dtype for the given torch dtype. |
|
|
|
Like |
|
|
|
Like |
|
|
|
Returns the numpy module associated with the given array. |
|
Linearly scale the given value by the given range. |
|
Returns |
|
Returns True if the given array is a |
|
Returns True if the dtype is |
|
Normalize the vector to the unit norm. |
|
Normalize |
|
Project |
|
Project |
Attribute#
Mirror math.tau (PEP 628). See https://tauday.com/ |
Typing#
ArrayLike indicates that any |