complex matrix entries

This is a discussion on complex matrix entries within the C++ Programming forums, part of the General Programming Boards category; hi i have to make a program to show that whether the matrix is skew hermition matrix or not. this ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    41

    Arrow complex matrix entries

    hi i have to make a program to show that whether the matrix is skew hermition matrix or not. this is a mathematical condition in this case i have to enter complex entries and non complex entries like
    i 3 4i
    2+4i 0 5i
    3i 0 9+9i
    suppose these are the matrix entries i am familier with 2-d arrays but i could not find a way to enter non complex and complex entries as above
    any help will be appreciated
    thanks

  2. #2
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    460
    you can use the complex lib.
    Code:
    #include <complex>
    
    int main()
    {
       complex<double> array[3][3]; 
       array[0][0] = complex<double>(0.0,1.0); 
    }
    something like that would do.
    Last edited by nimitzhunter; 01-17-2011 at 11:56 AM.
    "All that we see or seem
    Is but a dream within a dream." - Poe

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting Matrix
    By alex 2010 in forum C++ Programming
    Replies: 0
    Last Post: 06-24-2010, 10:40 AM
  2. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 05:57 PM
  3. Why am I getting 'undelcared identifier' ???
    By Bill83 in forum C++ Programming
    Replies: 2
    Last Post: 02-15-2006, 01:00 PM
  4. What is a matrix's purpose in OpenGL
    By jimboob in forum Game Programming
    Replies: 5
    Last Post: 11-14-2004, 12:19 AM

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