numpy排序算法构造函数。
1 2 | explicit NpySort::NpySort() = default; NpySort::NpySort(std::vector<float> preSortVec, std::vector<int> sortIdx); |
参数名 |
输入/输出 |
说明 |
---|---|---|
preSortVec |
输入 |
待排序数组,长度大于0。 |
sortIdx |
输入 |
待排序索引数组。 单个索引最小为0,最大为该数组长度-1。长度与待排序数组相同。 |