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

Cwise trigonometric functions?

Tags: None
(comma "," separated)
vernal
Registered Member
Posts
37
Karma
0

Cwise trigonometric functions?

Tue Feb 08, 2011 9:23 am
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
User avatar
bjacob
Registered Member
Posts
658
Karma
3

Re: Cwise trigonometric functions?

Tue Feb 08, 2011 12:11 pm
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!
vernal
Registered Member
Posts
37
Karma
0

Re: Cwise trigonometric functions?

Wed Feb 09, 2011 8:04 am
We currently only offer cos(), sin() and tan() for trigonometric functions.


It's a pity :(
Is it planned to have support for the inverse functions in the future?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
acos and asin are now supported
vernal
Registered Member
Posts
37
Karma
0

Re: Cwise trigonometric functions?

Mon Feb 21, 2011 12:39 pm
Thank you very much! :-)


Bookmarks



Who is online

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