Skip to content

Swap API Reference

geoloop.geoloopcore.CoaxialPipe.Swap

Swap(
    arr: ndarray, start_index: int, last_index: int
) -> None

Swap two columns in an array, in place, from start_index to last_index.

Parameters:

Name Type Description Default
arr ndarray

2D array where columns will be swapped.

required
start_index int

Index of the first column to swap.

required
last_index int

Index of the second column to swap.

required

Returns:

Type Description
None

The operation is performed in place.