Question about passing a matrix into a function

Discussion in 'C Programming' started by aeson25, Aug 29, 2008.

  1. aeson25

    aeson25

    Joined:
    Aug 29, 2008
    Messages:
    1
    I'm trying to pass a matrix into a function.

    I declared a "matrix"

    Code:
    double MyMatrix[14][14];
    I then want to pass it into a function to make it into an identity matrix

    Code:
    void MakeEye(double ** TheMatrix, int size);
    I want to do this for a matrix of any size. Unfortunately I get an error that says:

    Could anyone help?
    aeson25, Aug 29, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lvcargnini

    Matrix composed by two matrix

    lvcargnini, Jul 4, 2006, in forum: VHDL
    Replies:
    3
    Views:
    2,648
    Jonathan Bromley
    Jul 5, 2006
  2. Holgerson

    Matrix*Vector and Vector*Matrix

    Holgerson, Oct 25, 2007, in forum: C++
    Replies:
    3
    Views:
    398
    Holgerson
    Oct 26, 2007
  3. Terry Reedy
    Replies:
    0
    Views:
    542
    Terry Reedy
    Apr 2, 2009
  4. Robert Kern
    Replies:
    0
    Views:
    581
    Robert Kern
    Apr 2, 2009
  5. Joe Van Dyk
    Replies:
    2
    Views:
    93
    Joe Van Dyk
    Sep 12, 2006
Loading...

Share This Page