torch.SearchSortedOptions
export interface SearchSortedOptions {
/** If true, return int32 indices; if false, return int64 (default: true) */
out_int32?: boolean;
/** If true, return index for insertion on the right (≥); if false, on the left (<). Default: false */
right?: boolean;
/** Alternative to right parameter: 'left' (same as right=false) or 'right' (same as right=true) */
side?: 'left' | 'right';
/** Optional indices that sort sorted_sequence (if sequence is not actually sorted) */
sorter?: Tensor;
}out_int32(boolean)optional- – If true, return int32 indices; if false, return int64 (default: true)
right(boolean)optional- – If true, return index for insertion on the right (≥); if false, on the left (<). Default: false
side('left' | 'right')optional- – Alternative to right parameter: 'left' (same as right=false) or 'right' (same as right=true)
sorter(Tensor)optional- – Optional indices that sort sorted_sequence (if sequence is not actually sorted)
Options for searchsorted operations