"complex-nd-array .* real-scalar" broken
John W. Eaton
jwe at bevo.che.wisc.edu
Mon Dec 10 12:54:24 CST 2007
On 10-Dec-2007, Thomas Kasper wrote:
| Bug report for Octave 2.9.17+ configured for i686-pc-linux-gnu
|
| Description:
| -----------
|
| "a .* b" yields "error: invalid conversion of ComplexNDArray
| to ComplexMatrix" whenever "a" is a complex-nd-array and
| "b" a real-valued scalar.
|
|
| Repeat-By:
| ---------
|
| octave:1> a = rand ([3,4,2]) + i*rand ([3,4,2]);
| octave:2> a .* rand ()
| error: invalid conversion of ComplexNDArray to ComplexMatrix
| error: evaluating binary operator `.*' near line 2, column 3
|
| % however:
| octave:2> a .* (rand () + i*rand ()); % no error
| octave:3> rand () .* a; % here neither
| octave:4>
Please try the following patch.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20071210/e42ea6ff/attachment.ksh
More information about the Bug-octave
mailing list