[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for second column of complex pairs |
Date: |
Tue, 29 Aug 2017 18:46:41 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #24, bug #50124 (project octave):
I made several changes to update the documentation and follow Octave coding
conventions here (http://hg.savannah.gnu.org/hgweb/octave/rev/a315ac23dc6c).
The only thing of note was this change
- midx=idx+[0:si(2)-1]*si(1);
+ midx = idx + rows (idx) * ones (rows (idx), 1) * [0:columns(idx)-1];
This was done to be analogous to
z = z(idx + n * ones (n, 1) * [0:m-1]);
If we don't need the call to ones(), because we are relying on implicit
broadcasting, then it can be removed from this line as well.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50124>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/