Matrix multiplication?

Discussion in 'Perl Misc' started by jon rogers, Jul 21, 2003.

  1. jon rogers

    jon rogers Guest

    Hi

    I have a 21 * 21 matrix which I'd like to raise to the power of 50. Is it
    possible to do that in Perl?

    The matrix looks something like this:

    0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
    1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
    0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2

    .... and so on.

    I have the matrix both as a file (fields separated by space, \n indicates
    new line) and in an array (0 through 440).

    Has anyone here done this before, or know how it could be done?

    Thanks,

    JR
    jon rogers, Jul 21, 2003
    #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. walala
    Replies:
    2
    Views:
    2,310
    joris
    Mar 24, 2010
  2. Michael Bader
    Replies:
    11
    Views:
    12,043
    Michael Bader
    Mar 3, 2004
  3. robix

    matrix multiplication

    robix, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    505
    Rouben Rostamian
    Nov 13, 2003
  4. Sssasss

    matrix Multiplication

    Sssasss, Oct 18, 2006, in forum: Python
    Replies:
    7
    Views:
    366
    Sssasss
    Oct 18, 2006
  5. William Hughes
    Replies:
    13
    Views:
    1,212
    Ben Bacarisse
    Mar 15, 2010
Loading...

Share This Page