Skip to main content

//clika-runtime/io.clika.runtime/Ops/searchsorted

searchsorted

[common]
fun searchsorted(sortedSequence: Tensor, values: Tensor, outInt32: Boolean = false, right: Boolean = false, side: Boolean? = null, sorter: Tensor? = null): Tensor

searchsorted(sortedSequence: Tensor, values: Tensor, outInt32: Boolean = false, right: Boolean = false, side: Boolean? = null, sorter: Tensor? = null): the searchsorted operator. Insertion points of values into a sorted sequence. For each value, the index in sorted_sequence's last axis where it would insert to keep the order: right == false gives the leftmost admissible slot, true the rightmost. side, when present, must AGREE with right (it is the same switch under its string-API name); sorter supplies indices that sort an unsorted sequence.