1,847
edits
(→Usage: add "diagonalize NxN matrices contained in an array") |
(Add Category:External Packages.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Hope it will eventually make it to the parallel package, once its stability is proved. | Hope it will eventually make it to the parallel package, once its stability is proved. | ||
See also the [[Parallel package]] maintained by Olaf Till | See also the [[Parallel package]] maintained by Olaf Till | ||
There is an overhead for parallelization. Hence this package is not suited for very fast functions. | |||
== Installation == | == Installation == | ||
Line 43: | Line 45: | ||
=== Output in cell arrays === | === Output in cell arrays === | ||
The following sample code was an answer to [http://stackoverflow.com/questions/27422219/for-every-row-reshape-and-calculate-eigenvectors-in-a-vectorized-way this question]. The goal was to diagonalize 2x2 matrices contained as rows of a 2d array (each row of the array being a flattened 2x2 matrix). | The following sample code was an answer to [http://stackoverflow.com/questions/27422219/for-every-row-reshape-and-calculate-eigenvectors-in-a-vectorized-way this question]. The goal was to diagonalize matrices. For this example, 2x2 matrices contained as rows of a 2d array (each row of the array being a flattened 2x2 matrix). Note that in this case the function is too fast, so the performance penalty is too high to gain anything. | ||
{{code|diagonalize NxN matrices contained in an array| | {{code|diagonalize NxN matrices contained in an array| | ||
Line 65: | Line 67: | ||
Please report any issue using [https://sourceforge.net/p/ndpar/tickets/ tickets]. | Please report any issue using [https://sourceforge.net/p/ndpar/tickets/ tickets]. | ||
[[Category:External Packages]] |