kotlin-numpy / org.jetbrains.numkt / moveAxis

moveAxis

fun <T : Any> moveAxis(a: KtNDArray<T>, source: Int, destination: Int): KtNDArray<T> (source)

Move axis of an array to new positions. Other axis remain in their original order.

Parameters

a - input array KtNDArray of type T

source - original positions of the axes to move. These must be unique.

destination - destination positions for each of the original axes. These must be unique.

Return
view of the input array.

fun <T : Any> moveAxis(a: KtNDArray<T>, source: IntArray, destination: IntArray): KtNDArray<T> (source)