This bugzilla service is closed. All entries have been migrated to
Bug 1601 - Tensor chips(IndexList offsets, Index dim)
Summary: Tensor chips(IndexList offsets, Index dim)
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tensor (show other bugs)
Version: 3.5 (future version)
Hardware: x86 - 64-bit Linux
: Normal Feature Request
Assignee: Nobody
Depends on:
Reported: 2018-09-18 23:52 UTC by william.tambellini
Modified: 2019-12-04 17:57 UTC (History)
4 users (show)


Description william.tambellini 2018-09-18 23:52:18 UTC
As today (at least from the master branch), there is a

chip(const Index offset, const Index dim)

in order to access a 'chip' from a tensor on the given index and given dimension.

There does nt seem to have a way to build a tensor from a list of indices though.

This feature request would allow to do such op. 
Example :

Eigen::Tensor<T,R> s = t.chips({1,3}, 0); 

to build a tensor from columns 1 and 3 of t.

Any cons/redflags ?
Comment 1 Nobody 2019-12-04 17:57:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:

Note You need to log in before you can comment on or make changes to this bug.