Thread: Simple Matrix Operations?

  1. #1
    Registered User
    Join Date
    Dec 2003

    Simple Matrix Operations?

    I am having problems figuring out how to run simple matrix operations in a program. I am trying to write a encoder using an encoding matrix and can't figure out how to ask the computer to handle the matrices. Please help!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    int matrix[10][10];
    What else?
    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
    Registered User
    Join Date
    Dec 2003
    I have to be able to find the inverse of a matrix and also multiply matrices together. It is a long and complicated process if you do it by hand and I want a computer program which will do it. The idea will be applied to cyrptography and communications.

  4. #4
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Use your normal formulas. Where exactly are you having problems? What have you tried?

    Also, beware, unless your matrices are of a special type, finding dterminants is a positively hideous problem for large enough matrices.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Waterloo, Texas
    Where is your work? Post what you have done and describe the specific problems you are having with it.
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
        return std::pow
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  2. Simple operator overloading issue
    By Desolation in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2007, 08:56 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. matrix program
    By J in forum C Programming
    Replies: 4
    Last Post: 04-21-2002, 08:07 PM