Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Suggestions about large Matrices???

  1. #1
    jakopo is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Suggestions about large Matrices???

    Hi!

    I'm not a programmer, I'm actually working with Matlab, and I'm dealing with symbolic matrices: I need to work with 5000x5000 matrices and invert them, I have to solve some linear systems.

    But, since I have problems with it -it's very time-consuming, already 10x10 symbolic matrices crash everything, it's not like using matrices filled with numbers- I was thinking whether I can change my programming language: probably c++ or something else could be better suited for solving simple but large systems?

    Thank you very much for your suggestions!

    Jacopo

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    bobdark's Avatar
    bobdark is offline Programmer
    Join Date
    Jan 2010
    Location
    Haifa, Israel
    Posts
    164
    Rep Power
    9

    Re: Suggestions about large Matrices???

    What exactly do you want to do in the other programming language? Only to invert matrices?

  4. #3
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Suggestions about large Matrices???

    I'd suggest C/C++, but how are you going to input the matrices? A file? By hand?
    sudo rm -rf /

  5. #4
    jakopo is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Re: Suggestions about large Matrices???

    Hi!

    Yes, I just need to invert a matrix and then to change some of its entries when I need to set them equal to zero. I know it's easy, my problem is just its size.
    Well, in Matlab I've written a little file that creates the matrix and then invert it. It works and I can transfer it to c++. I will try!
    Thank you very much for the suggestion!

    Jacopo

  6. #5
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Suggestions about large Matrices???

    I meant "Are you going to read the matrices from a file?"
    sudo rm -rf /

  7. #6
    jakopo is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Re: Suggestions about large Matrices???

    No, it's actually my program that creates the entries of the matrix from a statistical distribution, set them to the proper place and then invert the matrix. I have no files from which I read it...

  8. #7
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Suggestions about large Matrices???

    Oh, ok. So as long as you can code the statistical distribution into C/C++ then you should be fine. I strongly suggest that you compile with maximum speed optimizations. I can tell you right now, though, that coding the RREF bit is going to be a PAIN.
    sudo rm -rf /

  9. #8
    jakopo is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Re: Suggestions about large Matrices???

    Thank you very much Dargueta, now I've a path to follow! Your indications are precious, and I know what to expect.
    So, let's delve into C++ now a face the pain! ;-)

  10. #9
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Suggestions about large Matrices???

    Ooh, pain. I love pain. Luckily I found an RREF algorithm already implemented in C (written over six years ago, mind you) so we should be able to tweak it a bit to work with what you need. Most of the work is already done for you.
    Attached Files Attached Files
    sudo rm -rf /

  11. #10
    jakopo is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Re: Suggestions about large Matrices???

    Uh, many thanks! That's big stuff! I've a lot to learn from this code, as far as I can see.
    With this, I can try to begin to translate everything from Matlab.
    This is huge Help!!

    Many many thanks!!

    Jacopo

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I find product of the matrices?
    By jackson6612 in forum C and C++
    Replies: 1
    Last Post: 06-03-2011, 01:29 PM
  2. Using translation matrices with Java 3D
    By ThemePark in forum Java Help
    Replies: 0
    Last Post: 09-17-2009, 07:16 AM
  3. matrices infinite
    By jwxie518 in forum General Programming
    Replies: 2
    Last Post: 09-14-2009, 07:25 PM
  4. Suggestions..
    By Jaan in forum The Lounge
    Replies: 2
    Last Post: 03-03-2008, 08:35 AM
  5. Are arrays sort of like matrices?
    By Sionofdarkness in forum Java Help
    Replies: 5
    Last Post: 08-21-2006, 12:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts