Registered Member
|
Hi,
is there a way to optimize an expression like this:
NB: I need to clamp the range of the matrixXvector product in my NN training code... thanks Stefan |
Moderator
|
yes, split it in two:
(Eigen 3.3 should be able to do exactly that for you) |
Registered Member
|
Thanks again, ggael, it seems to work. However, this will still force me to use temporaries anyways for expressions like that, right?
Is there already a rough schedule for Eigen 3.3? thanks a lot Stefan |
Moderator
|
yes because this will be the most efficient solution. However, if the matrix m is pretty small or if you prefer to sacrifie performance for no temp, you can use A.lazyProduct(B) instead of operator*.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]