isortTop#
- swordfish.function.isortTop()#
Return the first few elements of the result of isort(X, [ascending]).
- Parameters:
X (Constant) – A vector or a tuple of vectors of the same length.
top (Constant) – A positive integer no more than the size of a vector in X.
ascending (Constant) – A Boolean scalar or vector indicating whether to sort X (or vectors of X sequentially) in ascending order or descending order. The default value is true (ascending order).