Tensor chips(IndexList offsets, Index dim)
Submitted by wil..@..il.com
Assigned to Nobody
Link to original bugzilla bug (#1601)
Version: 3.5 (future version)
Operating system: Linux
Description
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 ?
Kind
Edited by Eigen Bugzilla