sortMatrix
fun sortMatrix(sortType: Pipeline.SortType, source: Tensor, sortedResult: Tensor?, indexResult: Tensor?)
Sort a matrix, column-by-column or row-by-row.
Parameters
sortType
whether the sort should be done column-wisely or row-wisely.
source
the matrix to be sorted. It must be a 1-channel multi-dimensional tensor of 2 dimensions.
Throws
If the usage is not allowed by the SpatialML run-time Framework, or if the framework encounter internal error and cannot perform the requested behavior.