Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org Parallel matrix multiplication
 Programming This forum is for all programming questions. The question does not have to be directly related to Linux and any language is fair game.

Notices

 09-21-2004, 02:09 AM #1 abdobl LQ Newbie   Registered: Sep 2004 Location: Tripoli Posts: 22 Rep: Parallel matrix multiplication Hi every body.. I need a parallel matrix multiplication code in C language,I need it too much,I have searched the google site but it did not work.any help will be appresiated. abdobl
 09-21-2004, 03:56 AM #2 rjlee Senior Member   Registered: Jul 2004 Distribution: Ubuntu 7.04 Posts: 1,991 Rep: Modified C++ code from http://www.devarticles.com/c/a/Cplus...g-in-C-plus/4/ I haven't tested this, but it looks like it should work to me. Calculates l * m, stores result in dest. m_numRows = number of rows in m and number of columns in l. numRows is number of rows in dest, numCols is number of cols in dest. Dimensions are assumed to be correct. Code: void matrixmul(double ** dest, double ** l, double ** m, int m_numRows, int numRows, int numCols) { int r,c,i; for (r=0;r
 09-21-2004, 01:25 PM #3 clockworks Member   Registered: Dec 2003 Location: texas Distribution: fedora core 1, fedora core 2 Posts: 37 Rep: he's looking for a parallel matrix multiply algorithm. i got two questions for you...are you using shared memory or message passing? and is this a homework assignment? =P -- C
 09-22-2004, 06:11 AM #4 abdobl LQ Newbie   Registered: Sep 2004 Location: Tripoli Posts: 22 Original Poster Rep: you are right ,I am looking for parallel matrix multiply algorithm, I am using sockets with TCP/IP,stream sockets. this is not a homework,it's step in project Iam working on...

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Jon_Roland Fedora 0 11-07-2005 10:18 PM irfanhab Programming 0 12-23-2004 10:13 PM ryancoolest Linux - Newbie 2 09-13-2004 08:28 PM ryancoolest Linux - Hardware 1 09-13-2004 04:36 AM eresc Linux - Hardware 4 11-28-2003 04:59 PM

LinuxQuestions.org

All times are GMT -5. The time now is 05:32 AM.

 Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -