Apr 8, 2013 at 10:57 AM
Edited Apr 8, 2013 at 11:07 AM

Hi,
Is there a function that allows to perform trigonometric operations on a dense matrix?
My matrices are very large, and I am not sure that using a for loop to operate on each individual element element is the most efficient way to do it.
Thanks.


Apr 8, 2013 at 11:14 AM
Edited Apr 8, 2013 at 11:16 AM

I assume you want to apply them elementwise?
Not yet, but we're about to add some functional combinators to the linear algebra types, like
Map which would apply a provided function/lambda as argument to all entries of the matrix (something like
m.MapInplace(Math.Sin); ). These combinators will then be optimized to the actual storage scheme so it should indeed be more efficient than looping through the elements from the outside, especially for sparse schemes but also for dense matrices
(since we can do a straight loop without any index computations).
Thanks,
Christoph



Thanks for the response.
Yes. This would be very useful.
No pressure, but how soon should this be implemented?



There is a chance >50% it will make it into v2.5 which should be released within 2 weeks (originally planned last weekend). If not it will be v2.6.



Brilliant!
Looking forward to the release. Love the work done thus far.
Cheers.

