Operations#
Load/Store#
Gets the index of current block. |
|
Gets the number of blocks along the axis. |
|
Gets the number of tiles in the tile space of the array along the axis. |
|
Loads a tile from the array which is partitioned into a tile space. |
|
Stores a tile value into the array at the index of its tile space. |
|
Loads a tile from the array elements specified by indices. |
|
Stores a tile value into the array elements specified by indices. |
Factory#
Shape & DType#
Concatenates two tiles along the axis. |
|
Broadcasts a tile to the specified shape following Numpy broadcasting rule. |
|
Reshapes the tile by inserting a new axis of size 1 at given position. |
|
Reshapes a tile to the specified shape. |
|
Permutes the axes of the input tile. |
|
Transposes two axes of the input tile with at least 2 dimensions. |
|
Converts a tile to the specified data type. |
Reduction#
Performs sum reduction on tile along the axis. |
|
Performs max reduction on tile along the axis. |
|
Performs min reduction on tile along the axis. |
|
Performs prod reduction on tile along the axis. |
|
Performs argmax reduction on tile along the axis. |
|
Performs argmin reduction on tile along the axis. |
Scan#
Matmul#
Selection#
Math#
Elementwise add on two tiles. |
|
Elementwise sub on two tiles. |
|
Elementwise mul on two tiles. |
|
Elementwise truediv on two tiles. |
|
Elementwise floordiv on two tiles. |
|
Computes ceil(x / y). |
|
Elementwise pow on two tiles. |
|
Elementwise mod on two tiles. |
|
Elementwise minimum on two tiles. |
|
Elementwise maximum on two tiles. |
|
Same as -x. |
|
Perform exp on a tile. |
|
Perform exp2 on a tile. |
|
Perform log on a tile. |
|
Perform log2 on a tile. |
|
Perform sqrt on a tile. |
|
Perform rsqrt on a tile. |
|
Perform sin on a tile. |
|
Perform cos on a tile. |
|
Perform tan on a tile. |
|
Perform sinh on a tile. |
|
Perform cosh on a tile. |
|
Perform tanh on a tile. |
|
Perform floor on a tile. |
|
Perform ceil on a tile. |
Bitwise#
Elementwise bitwise_and on two tiles. |
|
Elementwise bitwise_or on two tiles. |
|
Elementwise bitwise_xor on two tiles. |
|
Elementwise bitwise_lshift on two tiles. |
|
Elementwise bitwise_rshift on two tiles. |
|
Elementwise bitwise not on a tile. |
Comparison#
Compare two tiles elementwise with >. |
|
Compare two tiles elementwise with >=. |
|
Compare two tiles elementwise with <. |
|
Compare two tiles elementwise with <=. |
|
Compare two tiles elementwise with ==. |
|
Compare two tiles elementwise with !=. |
Atomic#
Bulk atomic compare-and-swap on array elements with given indices. |
|
Bulk atomic exchange of array elements at given indices. |
|
Bulk atomic post-increment of array elements at given indices. |
|
Bulk atomic maximum value assignment on array elements at given indices. |
|
Bulk atomic minimum value assignment on array elements at given indices. |
|
Bulk atomic AND operation on array elements at given indices. |
|
Bulk atomic OR operation on array elements at given indices. |
|
Bulk atomic XOR operation on array elements at given indices. |