octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indexing improvements - advice wanted


From: John W. Eaton
Subject: Re: indexing improvements - advice wanted
Date: Wed, 29 Oct 2008 13:57:11 -0400

On 29-Oct-2008, John W. Eaton wrote:

| so that we can write things like
| 
|   Array<T> ra1 (...);
|   octave_idx_type i, j;
|   ...
|   Array<T> ra2 = ra1(i,j);
| 
| ?

Sorry, this is a bad example.  A more useful one would be

  Array<T> ra1 (...);
  Range i, j;
  ...
  Array<T> ra2 = ra1(i,j);

or

  Array<T> ra1 (...);
  Array<double> i, j;
  ...
  Array<T> ra2 = ra1(i,j);

etc.  This way, it would be possible to do indexing in C++ that looks
more like the scripting language.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]