[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: origin of the index syntax
From: |
Francesco Potorti` |
Subject: |
Re: origin of the index syntax |
Date: |
Fri, 22 Jul 2005 16:08:33 +0200 |
>> does anyone know where the index expression syntax used
>> in Octave comes from? Is the Matlab people who invented it?
>> Or else it is older?
>> Was it just the evolution of something in common usage?
>
>If you mean syntax like
>
>1:n, :, etc.,
>
>this certainly goes back as far as Matlab and may have been used by
>earlier matrix computation pioneers.
>
>It is known as 'colon notation' and is described and discussed in Golub
>and Van Loan, Matrix Computations, 3rd Edition, ISBN = 0-8018-5414-8,
>The Johns Hopkins University Press, 1996
Thank you for the reference, which is indeed useful. Fortran 90, as
already pointed out, has a similar notation. However, Octave uses a
more powerful syntax for index expressions, where a costant index can be
any of
- a number (simple notation)
- a colon expression (colon notation)
- a vector (Matlab notation?)
As far as I can tell, this was invented by Matlab. Is that true?
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Re: origin of the index syntax,
Francesco Potorti` <=