[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave 2.1.30 and example/make_int.cc
From: |
en254 |
Subject: |
Re: octave 2.1.30 and example/make_int.cc |
Date: |
Thu, 27 Apr 2000 20:53:29 -0400 (EDT) |
On Tue, 25 Apr 2000, John W. Eaton wrote:
> | 3. Previously, (ie in 2.1.19) I was able to get at
> | index operations working using something like:
> |
> | octave_value_list
> | octave_integer::do_index_op (int, const octave_value_list& idx)
>
> In ov.h:
>
> virtual octave_value do_index_op (const octave_value_list& idx)
> { return rep->do_index_op (idx); }
>
> virtual octave_value_list
> do_multi_index_op (int nargout, const octave_value_list& idx);
>
> Sorry about the name change, but I think it was needed.
>
> Do you really need to use the one that produces multiple output
> values, or is the one that produces a single value the one you really
> want to use?
Thanks,
I tried both. It seems that index operations in octave
(both a(:) and a(:,:) ) call octave_value_list do_multi_index_op
I only need to return a single output value, so
it's not clear to me why the multi_index_op is the one
I need to use?
Anyway, though, it works, so I'm happy now.
______________________________________________________________
Andy Adler, address@hidden
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- User-defined Data Types, Rafael Laboissiere, 2000/04/21
- Re: User-defined Data Types, en254, 2000/04/23
- octave 2.1.30 and example/make_int.cc, en254, 2000/04/23
- Re: octave 2.1.30 and example/make_int.cc, Ben Sapp, 2000/04/24
- Re: octave 2.1.30 and example/make_int.cc, en254, 2000/04/24
- Re: octave 2.1.30 and example/make_int.cc, John W. Eaton, 2000/04/25
- Re: octave 2.1.30 and example/make_int.cc, en254, 2000/04/25
- Re: octave 2.1.30 and example/make_int.cc, John W. Eaton, 2000/04/25
- Re: octave 2.1.30 and example/make_int.cc,
en254 <=
- octave 2.1.30 and example/make_int.cc, John W. Eaton, 2000/04/25