Can I use this lib to output the original index of these sorted data
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- performance
调研方向
未指定文件、测试或入口点。首先阅读库现有的排序 API,并检查是否已经存在 argsort 或索引输出路径。当库提供一种有文档说明的方式来返回已排序值的原始索引,并覆盖示例行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
This lib looks awesome!
But I have a requirement to output the original index of these sorted data, for example the input array is {300 200 400 99 150 50 230 250}, then the sorted result should be {50 99 150 200 230 250 300 400}, and I want to get the original index as output {5, 3, 4, 1, 6, 7, 0, 2}.
Currently, I use the std::sort with a lambda to implement this require, but the performance is not good.
- 主要语言
- C++
- 星标
- 1k
- 派生
- 79
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
numpy/x86-simd-sort 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 84/100
numpy/x86-simd-sort#239 · 1 条评论 ·
-
v8.0 release?未关闭
难度 2/5 1-3 小时 新手友好度 43/100
numpy/x86-simd-sort#248 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
numpy/x86-simd-sort#221 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 32/100
numpy/x86-simd-sort#210 · 13 条评论 ·
-
难度 4/5 3-5 天 新手友好度 28/100
numpy/x86-simd-sort#189 · 8 条评论 ·
查看 numpy/x86-simd-sort 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 2 天内回复
-
Missing repro Platform: Android
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/react-native-reanimated#11554 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
Niko1221/Strata#7211 · 3 条评论 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
sleepyviper1213/redis#52 ·