5 * 5 matrix invert

This is a discussion on 5 * 5 matrix invert within the C++ Programming forums, part of the General Programming Boards category; how to write 5 * 5 matrix invert? Is there any simple examples? thank you!...

  1. #1

    5 * 5 matrix invert

    how to write 5 * 5 matrix invert?
    Is there any simple examples?
    thank you!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    So is this a maths question or a coding question?


    int matrix[5][5];
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    i know the math
    but don't know how to write the codes

  4. #4

    Lightbulb Something to keep in mind.

    Not all matrices are invertible. One simple test to see if a matrix is invertible is by using the determinant. If the determinant is nonzero, it is invertible.

    I don't know how to code this, but I can give information on how an inverse is found....

    If you take your matrix and perform a series of operations on it to transform it to the identity matrix and then perform the exact same operations in the exact same order on the identity matrix, the matrix formed will be the inverse of the original.

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, 01:30 PM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 04:57 PM
  3. Gauss-Jordan Matrix Inversion in C++
    By Max_Power82 in forum C++ Programming
    Replies: 3
    Last Post: 12-03-2006, 07: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, 06:36 AM

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