API enhancement: ndarray constructor with strides argument
未关闭
- 主要语言
- C++
- 星标
- 537
- 派生
- 223
- 平均合并
- 11 小时 22 分钟
- 30 天内合并 PR
- 2
描述
Short: Please add versions of the functions `zeros` and `empty` that accept a `strides` argument.
Long:
The C++ API of `ndarray` does not allow to create an `ndarray` with the functions `zeros` or `empty` with custom strides. I have a use case in [histogram](https://github.com/HDembinski/histogram) where I need custom strides. This is possible with the underlying C-API, so it is merely an extension of the C++ front-end.
I cannot use `from_data`, because I want the ndarray to own the memory.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。