Non-consecutive block view of Tensor
Dear Eigen developers,
Hello. I know it is possible to extract a non-consecutive block view of a matrix.
#include <Eigen/Dense>
#include <iostream>
int main() {
Eigen::MatrixXd A(8, 8); A.setZero();
Eigen::VectorXi indices(4);
indices << 0, 1, 5, 6;
A(indices, indices)(3, 2) = 9; // Changing the 6th-5th element
std::cout << A << std::endl;
return 0;
}
However, it is not for a tensor. Therefore, may I ask for the same feature for tensors? This feature will likely be a useful one that will improve user experience of working with Eigen::Tensor. Thank you!
Zhang Yichi