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?

Printable View

- 05-27-2002fyodormatrix 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?

- 05-27-2002Radical Edward
>>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. :p

=Ed= - 05-27-2002fyodor
Thanks for your help, Edward:) The first was correct