robin
Posts:
30
Registered:
1/2/11
|
|
Re: dumb matrix question
Posted:
May 11, 2011 8:44 PM
|
|
"Eli Osherovich" <eli.osherovich@gmail.com> wrote in message news:iqdgc8$5la$1@dont-email.me... | By the way, I do not know whether you prefer speed over short (and | elegant?) code, however, in the past I ran extensive speed tests for a | close problem: multiplying all matrix *columns* by a scalar. The fastest | way was to use an explicit loop.
Since you were, in effect, multipying the entire array by a scalar, the fastest way would be to overlay a vector over the entire array and to multiply that by the scalar.
|
|