"y \= scalar" fails

Ben Abbott bpabbott at mac.com
Mon Mar 3 07:04:39 CST 2008


On Mar 3, 2008, at 7:42 AM, Rolf Fabian wrote:

> Unfortunately you forgot to line out the
> problem which Octave has to multiply a
> square matrix by a scalar value. i.e.
> evaluating "inv(y) * c" .
> Is "inv(y) * c" not anymore identical
> to "inv(y) .* c" or did I miss something?	

Rolf, I believe the operations ".*" and "*" are identical to each  
other when one of the inputs is a scalar.

For example, if c = scalar and A = mxn matrix, A*c, A.*c, c*A, c.*A  
each produce the same result.

Ben


More information about the Bug-octave mailing list