help-octave
[Top][All Lists]
Advanced

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

Re: fortran indexing? (was Re: oct file: multiply a matrix by a vector)


From: David Bateman
Subject: Re: fortran indexing? (was Re: oct file: multiply a matrix by a vector)
Date: Sun, 03 Jul 2005 11:46:13 +0200
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

this is the first time that I have heard that Octave uses Fortran
conventions for storage. Is there a reason for this?


The reason why fortran indexing is used is that the principal external library that octave links to is LAPACK that is itself written in fortran. The function Array<T>::fortran_vec() returns a point of typt T* to the data as it is stored in memory by octave that uses the fortran storage convention....

It seems like it
would be more difficult, given that both the scripting language, and
C++, indexes arrays down the column, row by row.

True for C++, but I don't see that the conventions of the scripting language impose any formality on the storage of the data within octave itself....

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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