Author Topic: Matrix multiplication trouble  (Read 6924 times)

aggie118

  • Guest
Matrix multiplication trouble
« on: February 07, 2012, 04:48:05 am »
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!


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Matrix multiplication trouble
« Reply #1 on: February 07, 2012, 05:32:11 am »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Matrix multiplication trouble
« Reply #2 on: February 07, 2012, 06:27:34 am »
You question is NOT related to Codeblocks
Topic locked, because it violates our forum rules !