C++ Matrix library needed

This is a discussion on C++ Matrix library needed within the C++ Programming forums, part of the General Programming Boards category; Does anyone know a good Matrix library for C++? I'm using MSVC++.NET. I need to add, multiply and invert matrices....

  1. #1
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    Post C++ Matrix library needed

    Does anyone know a good Matrix library for C++?

    I'm using MSVC++.NET.

    I need to add, multiply and invert matrices.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571

    Re: C++ Matrix library needed

    Originally posted by Sang-drax
    Does anyone know a good Matrix library for C++?

    I'm using MSVC++.NET.

    I need to add, multiply and invert matrices.
    Seriously, it is pretty easy to create your own library. It is especially easy since you only need 3 distinct operations. Why don't you try to create the library yourself, then if you have any problems ask and I can help you. I think in the long run you will learn more if you do it yourself Or someone else will post their library on here. Also there are thousands for free download online just look.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Try www.planet-source-code.com
    I made my own awhile back... it's still sitting around here somewheres, albeit incomplete (without inverse functionality)

  4. #4
    Unregistered
    Guest
    Just put lots of 1's and 0's... :P

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    Re: Re: C++ Matrix library needed

    Originally posted by MrWizard
    Seriously, it is pretty easy to create your own library. It is especially easy since you only need 3 distinct operations.
    I'll be studying linear mathematics this autumn, but IIRC it is quite complicated to invert a matrix (I don't know how it's done.. yet).
    Because of this, I thought it easier not to reinvent the wheel and use someone else's code.
    BTW, I have now found a library that suits my needs.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    Shadow12345
    Guest
    Just be careful. With C++ matricies are row major, but with some libraries, i.e opengl, they are column major. So [0][3] in opengl is actually [3][0] in C++

  7. #7
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Heh, I noticed that. Caused me some trouble.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #8
    Registered User
    Join Date
    Jun 2002
    Posts
    82
    I'm partial to the one at:

    http://www.techsoftpl.com/matrix/index.htm

    I use the shareware version as its sufficient for my needs, and contains all of the source code in the header file (for learning purposes).
    Claus Hetzer
    Compiler: Borland 5.5 (on Windows)
    Solaris CC (on Unix)
    Known Languages: C++, MATLAB, Perl, Java

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Music Programming - Serial Matrix Display (Help needed)
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-13-2007, 04:28 PM
  2. Sound Input Library Needed
    By Matt3000 in forum C++ Programming
    Replies: 0
    Last Post: 07-12-2007, 01:46 PM
  3. Weird errors.
    By Desolation in forum C++ Programming
    Replies: 20
    Last Post: 05-09-2007, 02:10 PM
  4. Replies: 1
    Last Post: 03-06-2006, 07:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21