C++ Matrix

This is a discussion on C++ Matrix within the C++ Programming forums, part of the General Programming Boards category; Hi Guys, I want to create a matrix with a dynamic size, any idea how to do it? Cheers...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    34

    C++ Matrix

    Hi Guys,

    I want to create a matrix with a dynamic size, any idea how to do it?

    Cheers

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Use std::vector of std::vector, perhaps?

    If you give more details of what you want, then we can perhaps give you better advice...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Location
    Stoneham,Québec
    Posts
    10
    A matrix is such an array with one dimension ... if you find the relation between those 2 ... u'll have ur answer hehe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C - access violation
    By uber in forum C Programming
    Replies: 2
    Last Post: 07-08-2009, 02:30 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 08:31 PM
  4. Matrix and vector operations on computers
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-11-2004, 07:36 AM

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