Thread: Matrix / 2D Array Templated Library

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    9

    Question Matrix / 2D Array Templated Library

    So, std::vector is just about the best thing I've come across since sliced bread.

    Is there anything along the lines of std:: vector only for 2D arrays / Matrices? I could just go about making a vector of vectors, but I would have thought there is something in the standard template library for this, although from my searching, I haven't come across it.

    Do you know of any classes I could use? I'm looking to not reinvent the wheel if it has been done well by someone already.

    Thanks for your time and all the help cboard has been already.

  2. #2
    Call me AirBronto
    Join Date
    Sep 2004
    Location
    Indianapolis, Indiana
    Posts
    195
    just create a structure with every thing you need in the matrix and make a vector of that structure

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 10-21-2003, 09:57 PM
  2. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM
  3. how to pass 2D array into function..?
    By IngramGc in forum C++ Programming
    Replies: 2
    Last Post: 10-21-2001, 08:41 AM
  4. Hi, could someone help me with arrays?
    By goodn in forum C Programming
    Replies: 20
    Last Post: 10-18-2001, 09:48 AM
  5. 2d Array access by other classes
    By deaths_seraphim in forum C++ Programming
    Replies: 1
    Last Post: 10-02-2001, 08:05 AM