Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transpose for Rank One Tensors #120

Open
amitsingh19975 opened this issue May 28, 2021 · 1 comment
Open

Transpose for Rank One Tensors #120

amitsingh19975 opened this issue May 28, 2021 · 1 comment
Assignees

Comments

@amitsingh19975
Copy link
Collaborator

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

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

same request here.
Would also call for handling rank n tensors by transposing per slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants