matrix multiplication

This is a discussion on matrix multiplication within the C Programming forums, part of the General Programming Boards category; Hi everyone, I am writing a function to multiply two matrices together. Does anyone know if it would be faster ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    200

    matrix multiplication

    Hi everyone, I am writing a function to multiply two matrices together. Does anyone know if it would be faster to use the '*' operator or the '&' operator?
    I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.

    Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    4
    >>Does anyone know if it would be faster to use the '*' operator or the '&' operator?
    * and & are overloaded operators, do you mean multiplication and bitwise AND or dereference and address-of? If it's the first one then either one because even though the bitwise operators are usually faster, most compilers will optimize the difference and it's better to make more sense than go for a little more speed. If it's the second then Edward has no idea what you mean.

    =Ed=

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    Thanks for your help, Edward The first was correct
    I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.

    Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.

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. *operator overloading: scalar matrix multiplication
    By gemini_shooter in forum C++ Programming
    Replies: 4
    Last Post: 06-08-2009, 01:14 PM
  3. Matrix Multiplication ( Accessing data from a file ) HELP
    By six_degreez in forum C Programming
    Replies: 2
    Last Post: 07-24-2008, 05:21 PM
  4. Matrix Help
    By HelpmeMark in forum C++ Programming
    Replies: 27
    Last Post: 03-06-2008, 04:57 PM

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