reverse

fun ComplexFloatArray.reverse()
fun ComplexDoubleArray.reverse()

Reverses elements in the array in-place.


fun ComplexFloatArray.reverse(fromIndex: Int, toIndex: Int)
fun ComplexDoubleArray.reverse(fromIndex: Int, toIndex: Int)

Reverses elements of the array in the specified range in-place.

Parameters

fromIndex

the start of the range (inclusive) to reverse.

toIndex

the end of the range (exclusive) to reverse.

Throws

if fromIndex is less than zero or toIndex is greater than the size of this array.