Module manipulation

Module manipulation 

Source
Expand description

Array manipulation operations (flip, roll, tile, repeat, etc.) Array manipulation operations similar to NumPy’s array manipulation routines

This module provides functions for manipulating arrays, including flip, roll, tile, repeat, and other operations, designed to mirror NumPy’s functionality.

Functions§

argmax
Return the indices of the maximum values along the specified axis
argmin
Return the indices of the minimum values along the specified axis
concatenate_2d
Concatenate 2D arrays along a specified axis
flip_2d
Flip a 2D array along one or more axes
gradient
Calculate the gradient of an array
hstack_1d
Stack a sequence of 1D arrays horizontally (as columns) into a 2D array
meshgrid
Create a meshgrid from 1D coordinate arrays
pad_2d
Pad a 2D array with a constant value
repeat_2d
Repeat array elements by duplicating values
roll_2d
Roll array elements along one or both axes
squeeze_2d
Remove a dimension of size 1 from a 2D array, resulting in a 1D array
swap_axes_2d
Swap rows or columns in a 2D array
tile_2d
Repeat an array by tiling it in multiple dimensions
unique
Find unique elements in an array
vstack_1d
Stack a sequence of 1D arrays into a 2D array

Type Aliases§

GradientResult
Result type for gradient function