Registered Member
|
Hi all
Is there already an optimized call in Eigen to perform element-wise trigonometric functions (like acos/arccos) on a matrix? If so, does it make a difference to call .array() first? Should I use a for-loop (and manually unroll it)? Cheers vernal |
Registered Member
|
In Eigen2, matrix.cwise().cos() (returns a matrix expression)
In Eigen3, matrix.array().cos() (returns an array expression) or if you have a Eigen3 Array object, array.cos(). We currently only offer cos(), sin() and tan() for trigonometric functions.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
It's a pity Is it planned to have support for the inverse functions in the future? |
Moderator
|
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft