Support `boost::rational` as value type for `axis::regular`
还没有人认领这个 Issue。
评估
调研方向
从使用 boost/histogram.hpp、boost/rational.hpp 和 axis::regular<boost::rational> 的最小示例开始。跟踪构造 histogram 时触发的 static_assert,并检查对 axis value type 的约束。完成的标准是示例能够编译,并且仍支持 regular axes 的现有行为。
由索引模型根据 Issue 内容生成。
描述
#include <boost/histogram.hpp>
#include <boost/rational.hpp>
namespace bh = boost::histogram;
int main() {
using R = bh::axis::regular<boost::rational<int>>;
auto h = bh::make_histogram(R(10, 0, 1));
}
This currently triggers a static_assert, but should be supported.
- 主要语言
- C++
- 星标
- 334
- 派生
- 76
- 平均合并
- 18 小时 2 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/histogram 的其他 Issue
-
Unsigned integer axis maps below-range values to overflow可能已有人在做 @vera-rubin 于 10 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 5/5 一周以上 新手友好度 28/100
-
Mixed scalar/array `fill` zeroes the whole histogram when a non-inclusive axis drops the first entry可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
查看 boostorg/histogram 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
OpenSpace/OpenSpace#4353 · 1 条评论 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
macOS: a double-click on a notarized altairsim is refused, and the docs give only the offline case可能已有人在做 @anhaoXie 今天认领。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
mutationpp/Mutationpp#337 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
bulletphysics/bullet3#4819 ·