Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Matrix
Results 1 to 3 of 3

Thread: Matrix

  1. #1

    Matrix

    Which takes longer in general, Adidtion of two matricies, Transposition of a matrix, or mulitplication of two matricies?

  2. #2

    Re: Matrix

    Umm.. trying to work out what on earth you are talking about

  3. #3

    Re: Matrix

    lol, this might help. which takes the longest ....


    Addition
    for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
    A[i][j] = B[i][j] + C[i][j];

    Multiplication
    for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
    for (k = A[i][j] = 0; k < n; k++)
    A[i][j] += B[i][k] * C[k][j];

    Transposition
    for (i = 0; i < n-1; i++)
    for (j = i+1; j < n; j++){
    temp = A[i][j];
    A[i][j] = A[j][i];
    A[j][i] = temp;
    }

Similar Threads

  1. User Linux browser matrix
    By babbing in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 02-14-2004, 11:10 PM
  2. The Matrix Revolutions
    By Tyr_7BE in forum General Chat
    Replies: 21
    Last Post: 11-17-2003, 08:21 AM
  3. Matrix 2 : Reloaded Review
    By coltrane in forum General Chat
    Replies: 31
    Last Post: 05-25-2003, 11:08 PM
  4. Matrix Reloaded (Wired article)
    By kornp in forum General Chat
    Replies: 14
    Last Post: 05-09-2003, 06:54 PM
  5. new Matrix teaser out
    By coltrane in forum General Chat
    Replies: 6
    Last Post: 05-19-2002, 09:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •