inverse matrix

This is a discussion on inverse matrix within the C++ Programming forums, part of the General Programming Boards category; Hello all: My work comes across matrix operation in C++. The rows m and columns n of the matrix m*n ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    30

    inverse matrix

    Hello all:

    My work comes across matrix operation in C++. The rows m and columns n of the matrix m*n usually as big as 10 t0 30.

    The major question is after defining the matrix A, I need to know the inverse matrix A-1('-1' is superscript)

    Who knows the program or way for obtaining inverse matrix?

    Thanks!

  2. #2
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    964
    Lol, I learned that formula last year in Algebra II, and now i forget, sorry

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    http://mathworld.wolfram.com/MatrixInverse.html (thanks dave ) explains a method for finding an inverse matrix. Basically for this you'll just have to work it out on paper for a NxN matrix and then write a program to do that.

    A method that *might* be easier to implement is:
    A(-1) = (1/det A) adj(A)
    Where adj(A) =
    Code:
    [C11 C12 ... C1n]
    [C21 C22 ... C2n]
    [... ... ... ...]
    [Cn1 Cn2 ... Cnn]
    Where Cnn is the cofactor of Ann

    That process requires for total calculations but is pretty simple to implement.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C program - inverse of a matrix
    By chaugh in forum C Programming
    Replies: 4
    Last Post: 01-18-2010, 11:00 PM
  2. C - access violation
    By uber in forum C Programming
    Replies: 2
    Last Post: 07-08-2009, 02:30 PM
  3. Need to Calculate the Inverse of A Matrix.
    By jordan_230 in forum C Programming
    Replies: 6
    Last Post: 11-03-2008, 06:14 PM
  4. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM

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