module documentation

Undocumented

Function ​_check​_valid​_dtype Undocumented
Function arange Array API compatible wrapper for np.arange.
Function asarray Array API compatible wrapper for np.asarray.
Function empty Array API compatible wrapper for np.empty.
Function empty​_like Array API compatible wrapper for np.empty_like.
Function eye Array API compatible wrapper for np.eye.
Function from​_dlpack Undocumented
Function full Array API compatible wrapper for np.full.
Function full​_like Array API compatible wrapper for np.full_like.
Function linspace Array API compatible wrapper for np.linspace.
Function meshgrid Array API compatible wrapper for np.meshgrid.
Function ones Array API compatible wrapper for np.ones.
Function ones​_like Array API compatible wrapper for np.ones_like.
Function tril Array API compatible wrapper for np.tril.
Function triu Array API compatible wrapper for np.triu.
Function zeros Array API compatible wrapper for np.zeros.
Function zeros​_like Array API compatible wrapper for np.zeros_like.
def _check_valid_dtype(dtype):

Undocumented

def arange(start, /, stop=None, step=1, *, dtype=None, device=None):

Array API compatible wrapper for np.arange.

See its docstring for more information.

Parameters
start:Union[int, float]Undocumented
stop:Optional[Union[int, float]]Undocumented
step:Union[int, float]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def asarray(obj, /, *, dtype=None, device=None, copy=None):

Array API compatible wrapper for np.asarray.

See its docstring for more information.

Parameters
obj:Union[Array, bool, int, float, NestedSequence[(bool|int)|float], SupportsBufferProtocol]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
copy:Optional[Union[bool, np._CopyMode]]Undocumented
Returns
ArrayUndocumented
def empty(shape, *, dtype=None, device=None):

Array API compatible wrapper for np.empty.

See its docstring for more information.

Parameters
shape:Union[int, Tuple[int, ...]]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def empty_like(x, /, *, dtype=None, device=None):

Array API compatible wrapper for np.empty_like.

See its docstring for more information.

Parameters
x:ArrayUndocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def eye(n_rows, n_cols=None, /, *, k=0, dtype=None, device=None):

Array API compatible wrapper for np.eye.

See its docstring for more information.

Parameters
n​_rows:intUndocumented
n​_cols:Optional[int]Undocumented
k:intUndocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def from_dlpack(x, /):

Undocumented

Parameters
x:objectUndocumented
Returns
ArrayUndocumented
def full(shape, fill_value, *, dtype=None, device=None):

Array API compatible wrapper for np.full.

See its docstring for more information.

Parameters
shape:Union[int, Tuple[int, ...]]Undocumented
fill​_value:Union[int, float]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def full_like(x, /, fill_value, *, dtype=None, device=None):

Array API compatible wrapper for np.full_like.

See its docstring for more information.

Parameters
x:ArrayUndocumented
fill​_value:Union[int, float]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def linspace(start, stop, /, num, *, dtype=None, device=None, endpoint=True):

Array API compatible wrapper for np.linspace.

See its docstring for more information.

Parameters
start:Union[int, float]Undocumented
stop:Union[int, float]Undocumented
num:intUndocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
endpoint:boolUndocumented
Returns
ArrayUndocumented
def meshgrid(*arrays, indexing='xy'):

Array API compatible wrapper for np.meshgrid.

See its docstring for more information.

Parameters
*arrays:ArrayUndocumented
indexing:strUndocumented
Returns
List[Array]Undocumented
def ones(shape, *, dtype=None, device=None):

Array API compatible wrapper for np.ones.

See its docstring for more information.

Parameters
shape:Union[int, Tuple[int, ...]]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def ones_like(x, /, *, dtype=None, device=None):

Array API compatible wrapper for np.ones_like.

See its docstring for more information.

Parameters
x:ArrayUndocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def tril(x, /, *, k=0):

Array API compatible wrapper for np.tril.

See its docstring for more information.

Parameters
x:ArrayUndocumented
k:intUndocumented
Returns
ArrayUndocumented
def triu(x, /, *, k=0):

Array API compatible wrapper for np.triu.

See its docstring for more information.

Parameters
x:ArrayUndocumented
k:intUndocumented
Returns
ArrayUndocumented
def zeros(shape, *, dtype=None, device=None):

Array API compatible wrapper for np.zeros.

See its docstring for more information.

Parameters
shape:Union[int, Tuple[int, ...]]Undocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented
def zeros_like(x, /, *, dtype=None, device=None):

Array API compatible wrapper for np.zeros_like.

See its docstring for more information.

Parameters
x:ArrayUndocumented
dtype:Optional[Dtype]Undocumented
device:Optional[Device]Undocumented
Returns
ArrayUndocumented