What are the differences between arrays and matrices?

This is a discussion on What are the differences between arrays and matrices? within the C++ Programming forums, part of the General Programming Boards category; I mean when using them in terms of places and just using them with numbers, they seem pretty similar to ...

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    What are the differences between arrays and matrices?

    I mean when using them in terms of places and just using them with numbers, they seem pretty similar to me


    Thanks in advance.


    Bleh posted in the wrong forum.......had two browser windows open.......please move to C++ board......You can't delete your own thread now?
    Last edited by incognito; 03-10-2003 at 05:20 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511

    Cool

    What do you mean in terms of "places"?
    Mr. C: Author and Instructor

  3. #3
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    SomeMatrix->M[2][6]=10;
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,702
    Well an array is a matrix extending in a single line. So given a single index, we can locate any spot in the array. If you lay many layers of arrays you could then describe 3D space with 3 coordinates (x, y, z). // ie: array[x][y][z] = value;
    Code:
    bool flip(bool value)
    {
        return std::pow(std::exp(1), std::complex<float>(0, 1) 
        * std::complex<float>(std::atan(1)*(1 << (value + 2))))
        .real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help with Matrices and Arrays
    By dcwang3 in forum C Programming
    Replies: 7
    Last Post: 02-17-2008, 03:53 PM
  2. Adding Arrays and Matrices
    By dlf in forum C++ Programming
    Replies: 3
    Last Post: 11-30-2005, 01:36 PM
  3. Multidimensional arrays as Matrices
    By alvifarooq in forum C++ Programming
    Replies: 9
    Last Post: 05-30-2005, 12:15 AM
  4. 2-D Arrays (Matrices)
    By Mak in forum C Programming
    Replies: 2
    Last Post: 11-27-2003, 02:01 PM
  5. File I/O with 2D arrays
    By hypertension in forum C Programming
    Replies: 2
    Last Post: 02-04-2003, 07:47 AM

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