Expand description
Operations
Modules§
- Indexing Arrays
Enums§
- The padding mode.
- Number of padding values to add to the edges of each axis.
- The number of dimensions to sum over
Traits§
- A custom trait for the bound of the clip operation.
Functions§
- Element-wise absolute value.
- Element-wise absolute value.
- Element-wise inverse cosine.
- Element-wise inverse cosine.
- Element-wise inverse hyperbolic cosine.
- Element-wise inverse hyperbolic cosine.
- See
Array::add
. - See
Array::add
. - Matrix multiplication with addition and optional scaling.
- Matrix multiplication with addition and optional scaling.
- See
Array::all
- See
Array::all_close
- See
Array::all_close
- See
Array::all
- See
Array::any
- See
Array::any
- See
Array::arange
- See
Array::arange
- Returns the indices that partition the array. Returns an error if the arguments are invalid.
- Returns the indices that partition the flattened array. Returns an error if the arguments are invalid.
- Returns the indices that partition the flattened array. Returns an error if the arguments are invalid.
- Returns the indices that partition the array. Returns an error if the arguments are invalid.
- Returns the indices that sort the array. Returns an error if the arguments are invalid.
- Returns the indices that sort the flattened array. Returns an error if the arguments are invalid.
- Returns the indices that sort the flattened array. Returns an error if the arguments are invalid.
- Returns the indices that sort the array. Returns an error if the arguments are invalid.
- See
Array::array_eq
- See
Array::array_eq
- Create a view into the array with the given shape and strides.
- Create a view into the array with the given shape and strides.
- Element-wise inverse sine.
- Element-wise inverse sine.
- Element-wise inverse hyperbolic sine.
- Element-wise inverse hyperbolic sine.
- Convert array to have at least one dimension.
- Convert array to have at least one dimension.
- Convert array to have at least two dimensions.
- Convert array to have at least two dimensions.
- Convert array to have at least three dimensions.
- Convert array to have at least three dimensions.
- Element-wise inverse tangent.
- Element-wise inverse tangent.
- Element-wise inverse hyperbolic tangent.
- Element-wise inverse hyperbolic tangent.
- Matrix multiplication with block masking.
- Matrix multiplication with block masking.
- Broadcast a vector of arrays against one another. Returns an error if the shapes are broadcastable.
- Broadcast a vector of arrays against one another. Returns an error if the shapes are broadcastable.
- Broadcast an array to the given shape. Returns an error if the shapes are not broadcastable.
- Broadcast an array to the given shape. Returns an error if the shapes are not broadcastable.
- Element-wise ceiling.
- Element-wise ceiling.
- Clip the values of the array between the given minimum and maximum.
- Clip the values of the array between the given minimum and maximum.
- Concatenate the arrays along the given axis. Returns an error if the shapes are invalid.
- Concatenate the arrays along the given axis. Returns an error if the shapes are invalid.
- 1D convolution over an input with several channels returning an error if the inputs are invalid.
- 1D convolution over an input with several channels returning an error if the inputs are invalid.
- 2D convolution over an input with several channels returning an error if the inputs are invalid.
- 2D convolution over an input with several channels returning an error if the inputs are invalid.
- 3D convolution over an input with several channels.
- 3D convolution over an input with several channels.
- General convolution over an input with several channels returning an error if the inputs are invalid.
- General convolution over an input with several channels returning an error if the inputs are invalid.
- 1D transposed convolution over an input with several channels.
- 1D transposed convolution over an input with several channels.
- 2D transposed convolution over an input with several channels.
- 2D transposed convolution over an input with several channels.
- 3D transposed convolution over an input with several channels.
- 3D transposed convolution over an input with several channels.
- Element-wise cosine.
- Element-wise cosine.
- Element-wise hyperbolic cosine.
- Element-wise hyperbolic cosine.
- See
Array::cummax
- See
Array::cummax
- See
Array::cummin
- See
Array::cummin
- See
Array::cumprod
- See
Array::cumprod
- See
Array::cumsum
- See
Array::cumsum
- Convert angles from radians to degrees.
- Convert angles from radians to degrees.
- Dequantize the matrix
w
using the providedscales
andbiases
and thegroup_size
andbits
configuration. - Dequantize the matrix
w
using the providedscales
andbiases
and thegroup_size
andbits
configuration. - See
Array::diag
- See
Array::diag
- See
Array::diagonal
- See
Array::diagonal
- See
Array::divide
. - See
Array::divide
. - Element-wise quotient and remainder.
- Element-wise quotient and remainder.
- Perform the Einstein summation convention on the operands.
- Perform the Einstein summation convention on the operands.
- See
Array::eq
- See
Array::eq
- Element-wise error function.
- Element-wise error function.
- Element-wise inverse error function.
- Element-wise inverse error function.
- See
Array::exp
. - See
Array::exp
. - Add a size one dimension at the given axis, returns an error if the axes are invalid.
- Add a size one dimension at the given axis, returns an error if the axes are invalid.
- Element-wise exponential minus 1.
- Element-wise exponential minus 1.
- See
Array::eye
- See
Array::eye
- Flatten an array. Returns an error if the axes are invalid.
- Flatten an array. Returns an error if the axes are invalid.
- See
Array::floor
. - See
Array::floor
. - See
Array::floor_divide
. - See
Array::floor_divide
. - See
Array::full
- See
Array::full
- See
Array::ge
- See
Array::ge
- See
Array::gt
- See
Array::gt
- See
Array::identity
- See
Array::identity
- Ordinary inner product of vectors for 1-D arrays, in higher dimensions a sum product over the last axes.
- Ordinary inner product of vectors for 1-D arrays, in higher dimensions a sum product over the last axes.
- See
Array::is_close
- See
Array::is_close
- Return a boolean array indicating which elements are +/- inifnity.
- Return a boolean array indicating which elements are +/- inifnity.
- Return a boolean array indicating which elements are NaN.
- Return a boolean array indicating which elements are NaN.
- Return a boolean array indicating which elements are negative infinity.
- Return a boolean array indicating which elements are negative infinity.
- Return a boolean array indicating which elements are positive infinity.
- Return a boolean array indicating which elements are positive infinity.
- See
Array::le
- See
Array::le
- See
Array::linspace
- See
Array::linspace
- See
Array::log
. - See
Array::log2
. - See
Array::log1p
. - See
Array::log1p
. - See
Array::log2
. - See
Array::log10
. - See
Array::log10
. - Element-wise log-add-exp.
- Element-wise log-add-exp.
- See
Array::log
. - See
Array::lt
- See
Array::lt
- See
Array::matmul
. - See
Array::matmul
. - See
Array::max
- See
Array::max
- Element-wise maximum.
- Element-wise maximum.
- See
Array::mean
- See
Array::mean
- See
Array::min
- See
Array::min
- Element-wise minimum.
- Element-wise minimum.
- Move an axis to a new position. Returns an error if the axes are invalid.
- Move an axis to a new position. Returns an error if the axes are invalid.
- See
Array::multiply
. - See
Array::multiply
. - See
Array::ne
- See
Array::ne
- See
Array::negative
. - See
Array::negative
. - See
Array::ones
- See
Array::ones
- Similar to
Array::ones
but with a specified dtype. - An array of ones like the input.
- An array of ones like the input.
- Compute the outer product of two 1-D arrays, if the array’s passed are not 1-D a flatten op will be run beforehand.
- Compute the outer product of two 1-D arrays, if the array’s passed are not 1-D a flatten op will be run beforehand.
- Pad an array with a constant value. Returns an error if the width is invalid.
- Pad an array with a constant value. Returns an error if the width is invalid.
- Returns a partitioned copy of the array such that the smaller
kth
elements are first. Returns an error if the arguments are invalid. - Returns a partitioned copy of the flattened array such that the smaller
kth
elements are first. Returns an error if the arguments are invalid. - Returns a partitioned copy of the flattened array such that the smaller
kth
elements are first. Returns an error if the arguments are invalid. - Returns a partitioned copy of the array such that the smaller
kth
elements are first. Returns an error if the arguments are invalid. - See
Array::power
. - See
Array::power
. - See
Array::prod
- See
Array::prod
- Quantize the matrix
w
usingbits
bits per element. - Quantize the matrix
w
usingbits
bits per element. - Perform the matrix multiplication with the quantized matrix
w
. The quantization uses one floating point scale and bias pergroup_size
of elements. Each element inw
takesbits
bits and is packed in an unsigned 32 bit integer. - Perform the matrix multiplication with the quantized matrix
w
. The quantization uses one floating point scale and bias pergroup_size
of elements. Each element inw
takesbits
bits and is packed in an unsigned 32 bit integer. - Convert angles from degrees to radians.
- Convert angles from degrees to radians.
- See
Array::reciprocal
. - See
Array::reciprocal
. - See
Array::remainder
. - See
Array::remainder
. - See
Array::repeat
- See
Array::repeat
- Reshape an array while preserving the size. Returns an error if the new shape is invalid.
- Reshape an array while preserving the size. Returns an error if the new shape is invalid.
- See
Array::round
. - See
Array::round
. - See
Array::rsqrt
. - See
Array::rsqrt
. - Element-wise logistic sigmoid.
- Element-wise logistic sigmoid.
- Element-wise sign.
- Element-wise sign.
- See
Array::sin
. - See
Array::sin
. - Element-wise hyperbolic sine.
- Element-wise hyperbolic sine.
- Perform the softmax along the given axis.
- Perform the softmax along all axes.
- Perform the softmax along all axes.
- Perform the softmax along the given axis.
- Returns a sorted copy of the array. Returns an error if the arguments are invalid.
- Returns a sorted copy of the flattened array. Returns an error if the arguments are invalid.
- Returns a sorted copy of the flattened array. Returns an error if the arguments are invalid.
- Returns a sorted copy of the array. Returns an error if the arguments are invalid.
- Split an array along a given axis. Returns an error if the indices are invalid.
- Split an array along a given axis. Returns an error if the indices are invalid.
- Split an array into equal parts along a given axis. Returns an error if the array cannot be split into equal parts.
- Split an array into equal parts along a given axis. Returns an error if the array cannot be split into equal parts.
- See
Array::sqrt
. - See
Array::sqrt
. - See
Array::square
. - See
Array::square
. - Remove length one axes from an array. Returns an error if the axes are invalid.
- Remove length one axes from an array. Returns an error if the axes are invalid.
- Stacks the arrays along a new axis. Returns an error if the arguments are invalid.
- Stacks the arrays along a new axis. Returns an error if the arrays have different shapes.
- Stacks the arrays along a new axis. Returns an error if the arrays have different shapes.
- Stacks the arrays along a new axis. Returns an error if the arguments are invalid.
- Compute the standard deviation(s) over the given axes.
- Compute the standard deviation(s) over the given axes.
- See
Array::subtract
. - See
Array::subtract
. - See
Array::sum
- See
Array::sum
- Swap two axes of an array. Returns an error if the axes are invalid.
- Swap two axes of an array. Returns an error if the axes are invalid.
- See [
Array::tan
]. - See [
Array::tan
]. - Element-wise hyperbolic tangent.
- Element-wise hyperbolic tangent.
- Compute the tensor dot product along the specified axes.
- Compute the tensor dot product along the specified axes.
- Construct an array by repeating
a
the number of times given byreps
. - Construct an array by repeating
a
the number of times given byreps
. - Transpose the dimensions of the array. Returns an error if the axes are invalid.
- Transpose with all axes reversed
- Transpose with all axes reversed
- Transpose the dimensions of the array. Returns an error if the axes are invalid.
- See
Array::tri
- See
Array::tri
- See
Array::variance
- See
Array::variance
- Select from
a
orb
according tocondition
returning an error if the arrays are not broadcastable. - Select from
a
orb
according tocondition
returning an error if the arrays are not broadcastable. - Alias for [
r#where
] - Alias for [
r#where
] - See
Array::zeros
- See
Array::zeros
- Similar to
Array::zeros
but with a specified dtype. - Similar to
Array::zeros
but with a specified dtype. - An array of zeros like the input.
- An array of zeros like the input.