This project has moved. For the latest updates, please go here.

trigonometric operators on a DenseMatrix

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

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.

Apr 8, 2013 at 10:14 AM
Edited Apr 8, 2013 at 10:16 AM
I assume you want to apply them element-wise?

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).

Marked as answer by cdrnet on 10/3/2013 at 5:43 PM
Apr 8, 2013 at 10:17 AM
Thanks for the response.

Yes. This would be very useful.

No pressure, but how soon should this be implemented?
Apr 8, 2013 at 10:32 AM
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.
Apr 8, 2013 at 10:34 AM

Looking forward to the release. Love the work done thus far.