help-octave
[Top][All Lists]
Advanced

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

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


From: Brian Blais
Subject: fortran indexing? (was Re: oct file: multiply a matrix by a vector)
Date: Sat, 02 Jul 2005 15:31:10 -0400
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

David Bateman wrote:
To reduce the number of cache misses you should traverse the matrix in the way it is stored in memory. Octave uses Fortran conventions for the storage and so you should reverse the for loops

this is the first time that I have heard that Octave uses Fortran
conventions for storage.  Is there a reason for this?  It seems like it
would be more difficult, given that both the scripting language, and
C++, indexes arrays down the column, row by row.

thanks for the input,

                        Brian Blais

--
-----------------

            address@hidden
            http://web.bryant.edu/~bblais



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