boostorg / boostorg/ublas

Invalid strides type for static extents of rank one

Open
#116 0 comments 0 reactions 1 assignee Claimed by @bassoy View on GitHub
bug
Dominant language
C++
Stars
122
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Right now, the static tensor gets confused about which strides type it should use for rank one extents because of the ambiguity between the `extents_static_rank<4>` and `extents_static<4>`. This ambiguity occurs because, behind the scene, they both are the specialization of the `extents_core<...>`.

When we create a static tensor of rank one, instead of choosing the strides from the `extents_static`, it chooses the strides from the `extents_static_rank`.

```cpp
auto t = tensor_static>(); // error: no viable conversion from 'const array<[...], 1>' to 'const array<[...], 2UL aka 2>'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.