forum.alglib.net

ALGLIB forum
It is currently Thu Mar 28, 2024 9:34 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  [ 1 post ] 
Author Message
 Post subject: Sparse matrix multiplication
PostPosted: Fri May 17, 2019 8:09 am 
Offline

Joined: Fri May 17, 2019 7:50 am
Posts: 1
I'd like to multiplicate two sparse matrices (A & B)--> C = A * B (size: 307200x307200) which have been initialized similar to the matrix a below.
Did not find anything related in the documetation nor the forum, except of the function rmatrixgemm, which requires the matrices to be of the type real_2d_array. Thank you very much for helpful tips, reference & solution.


Code:
sparsematrix a;
sparsecreate(5, 5, a);
sparseset(a, 0, 0, 5.0);
sparseset(a, 0, 1, 1.0);
sparseset(a, 1, 0, 1.0);
sparseset(a, 1, 1, 7.0);
sparseset(a, 1, 2, 2.0);
sparseset(a, 2, 1, 2.0);
sparseset(a, 2, 2, 8.0);
sparseset(a, 4, 4, 4.0);


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 52 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group