Mercurial > hg > octave-lyh
changeset 1020:5dbaaa0b3d46
[project @ 1995-01-10 20:31:02 by jwe]
author | jwe |
---|---|
date | Tue, 10 Jan 1995 20:31:02 +0000 |
parents | 7a632c749c67 |
children | 4ebc7911ab98 |
files | src/find.cc |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/find.cc +++ b/src/find.cc @@ -46,10 +46,11 @@ ColumnVector tmp (count); for (int i = 0; i < count; i++) tmp (i) = nr * (j_idx (i) - 1.0) + i_idx (i); - retval(0) = tree_constant (tmp, 1); -// If you want this to work more like Matlab, use the following line -// instead of the previous one. -// retval(0) = tree_constant (tmp, (nr != 1)); + +// If the original argument was a row vector, force a row vector of +// indices to be returned. + + retval(0) = tree_constant (tmp, (nr != 1)); } break;