boostorg / boostorg/ublas

Transpose for Rank One Tensors

Open
#120 1 comment 1 reaction 2 assignees Claimed by @amitsingh19975 View on GitHub
enhancement
Dominant language
C++
Stars
122
Forks
151
PR merge metrics
No merged PRs in 30d

Description

As of now, the rank one tensor does not allow to be transposed.

```cpp
auto const n = extents<>{3};
auto a = tensor_dynamic{n, 1.f};
auto c = tensor_dynamic{n};
std::vector pi{3};
ublas::trans( 1ul, n.data(), pi.data(), c.data(), c.strides().data(), a.data(), res.strides().data() ); // c = [0,0,0]
```

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.