Thursday, July 9, 2009

What's the syntax for scalar multiplication in c programming?

Scalar multiplication of a mathematical matrix? There's no such thing anywhere within any general-purpose language like C, MATLAB does have it.

What's the syntax for scalar multiplication in c programming?
I believe the only multiplication syntax in C proper (excluding tricks) is 'a * b' and the matching *= -operator. It multiplies scalars. Scalar multiplication of other types will have to be done in libraries. (BLAS, maybe?)


No comments:

Post a Comment