forum.alglib.net http://forum.alglib.net/ |
|
Generals matrixes product http://forum.alglib.net/viewtopic.php?f=2&t=85 |
Page 1 of 1 |
Author: | swagger [ Thu Oct 21, 2010 9:01 am ] |
Post subject: | Generals matrixes product |
Isn't there any function that calculates the product of two generals matrixes in ALGLIB? |
Author: | Sergey.Bochkanov [ Thu Oct 21, 2010 9:56 am ] |
Post subject: | Re: Generals matrixes product |
RMatrixGEMM, CMatrixGEMM from LinAlg package, ablas subpackage. They have somewhat low level, but flexible interface. |
Author: | swagger [ Thu Oct 21, 2010 10:40 am ] |
Post subject: | Re: Generals matrixes product |
mmm... watching the functions, I think is more simple do the product with 3 FOR cicles... Thank you |
Author: | Sergey.Bochkanov [ Thu Oct 21, 2010 10:44 am ] |
Post subject: | Re: Generals matrixes product |
Yes, simpler :) But these functions have better performance when you work with large matrices: 1024x1024, for example. They are optimized for cache reuse and (in C++) can be several times faster than simple nested for loop. |
Author: | swagger [ Thu Oct 21, 2010 11:59 am ] |
Post subject: | Re: Generals matrixes product |
Sergey.Bochkanov wrote: But these functions have better performance when you work with large matrices: 1024x1024, for example. They are optimized for cache reuse and (in C++) can be several times faster than simple nested for loop. Thanks for this information. Now I'll try with 3 FOR cicles, if it will bee too slow I'll try to implement the product with the RMatrixGEMM function. ;) Thank you. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |