Mercurial > hg > octave-nkf
changeset 13696:d6118a2c0644
fix indexing bug for matrices inside anonymous functions
* ov-base-mat.h (octave_base_matrix<T>::do_multi_index_op):
New method.
* ov-fcn-handle.cc: New test.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Oct 2011 11:05:30 -0400 |
parents | 348857854c52 |
children | 0f8ff98929b2 |
files | src/ov-base-mat.h src/ov-fcn-handle.cc |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-base-mat.h +++ b/src/ov-base-mat.h @@ -89,6 +89,9 @@ octave_value do_index_op (const octave_value_list& idx, bool resize_ok = false); + octave_value_list do_multi_index_op (int, const octave_value_list& idx) + { return do_index_op (idx); } + void assign (const octave_value_list& idx, const MT& rhs); void assign (const octave_value_list& idx, typename MT::element_type rhs);