forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 3:47 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Generals matrixes product
PostPosted: Thu Oct 21, 2010 9:01 am 
Offline

Joined: Wed Oct 13, 2010 1:02 pm
Posts: 5
Isn't there any function that calculates the product of two generals matrixes in ALGLIB?


Last edited by swagger on Thu Oct 21, 2010 11:51 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Generals matrixes product
PostPosted: Thu Oct 21, 2010 9:56 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
RMatrixGEMM, CMatrixGEMM from LinAlg package, ablas subpackage. They have somewhat low level, but flexible interface.


Top
 Profile  
 
 Post subject: Re: Generals matrixes product
PostPosted: Thu Oct 21, 2010 10:40 am 
Offline

Joined: Wed Oct 13, 2010 1:02 pm
Posts: 5
mmm... watching the functions, I think is more simple do the product with 3 FOR cicles...
Thank you


Top
 Profile  
 
 Post subject: Re: Generals matrixes product
PostPosted: Thu Oct 21, 2010 10:44 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
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.


Top
 Profile  
 
 Post subject: Re: Generals matrixes product
PostPosted: Thu Oct 21, 2010 11:59 am 
Offline

Joined: Wed Oct 13, 2010 1:02 pm
Posts: 5
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group