News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Matrix multiplication trouble

Started by aggie118, February 07, 2012, 04:48:05 AM

Previous topic - Next topic

aggie118

Hello,
      I'm a a newbie with both C programming and using Code::Blocks (on a Windows 7 platform using the MinGW compiler), so I apologize in advance if this is a dumb query!! I''ve been using a (very) simple program to multiply two square matrices and measure the time it takes to do so ; I've also been gradually increasing the size of the matrices to see how the time scales. I run into trouble right at 420 elements on each matrix  - the .exe file stops responding altogether and just gets stuck. I tried running this on two different machines (one with a 4GB RAM and another with 12 GB RAM , suspecting memory issues) but get the same result at the same point each time.
      I'd be glad to put up my code if someone wants to take a look at it but I just wanted to see if anyone has run into this before or knows what the issue could be.

Thanks!


ollydbg

You question is NOT related to Codeblocks, so I suggest you can ask your question in a dedicated forum like: C Board
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Quote from: ollydbg on February 07, 2012, 05:32:11 AM
You question is NOT related to Codeblocks
Topic locked, because it violates our forum rules !