rbc.stdlib.creation_functions#

Description

Array API specification for creation functions.

https://data-apis.org/array-api/latest/API_specification/creation_functions.html

Functions

arange(start[, stop, step, dtype, device])

Return evenly spaced values within a given interval.

asarray(obj[, dtype, device, copy])

Convert the input to an array.

cumsum(a)

Return the cumulative sum of the elements along a given axis.

empty(shape[, dtype])

Return a new array of given shape and type, without initializing entries.

empty_like(a[, dtype])

Return a new array with the same shape and type as a given array.

eye(n_rows[, n_cols, k, dtype, device])

❌ Not implemented

from_dlpack(x)

❌ Not implemented

full(shape, fill_value[, dtype])

Return a new array of given shape and type, filled with fill_value.

full_like(a, fill_value[, dtype])

Return a full array with the same shape and type as a given array.

linspace(start, stop, num[, dtype, device, ...])

❌ Not implemented

meshgrid(*arrays[, indexing])

❌ Not implemented

ones(shape[, dtype])

Return a new array of given shape and type, filled with ones.

ones_like(a[, dtype])

Return an array of ones with the same shape and type as a given array.

tril(x[, k])

❌ Not implemented

triu(x[, k])

❌ Not implemented

zeros(shape[, dtype])

Return a new array of given shape and type, filled with zeros.

zeros_like(a[, dtype])

Return an array of zeros with the same shape and type as a given array.