This forum has been archived. All content is frozen. Please use KDE Discuss instead.

specify tensor rank at run-time?

Tags: None
(comma "," separated)
FaKL
Registered Member
Posts
1
Karma
0

specify tensor rank at run-time?

Wed Mar 16, 2016 12:12 pm
Hi,

I have just started reading about Eigen and its new tensor module. I need to support tensors for which the rank is only known at run-time - is this possible in Eigen? If so, can you point me to an example of how that is done?

Thanks!
Fabian
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
This is not possible by design. However, you can probably get a similar effect by defining a Tensor type with the maximal rank you have to support, and then set the remaining dimensions to 1.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft