Registered Member
|
I would like to perform simple Tensorcontractions with the Eigen::Tensor module, but so far, i dont understand the way you adress the right dimensions.
Here is my current code:
I would just like to contract over the last dimension of B and the first dimension of C. But i dont understand how the system works and the documentation only gives you an example for 2D-Tensors. |
Registered Member
|
This one should do it:
You want to contract 2 dimensions, one from B and one from C, so a single `IndexPair` tells contract which dimensions to run over |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell