help-octave
[Top][All Lists]
Advanced

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

Re: Sparse functions for octave


From: John W. Eaton
Subject: Re: Sparse functions for octave
Date: Sun, 28 Nov 1999 21:59:00 -0600 (CST)

On 27-Nov-1999, A+A Adler <address@hidden> wrote:

| On Tue, 16 Nov 1999, John W. Eaton wrote:
| > On 16-Nov-1999, A+A Adler <address@hidden> wrote:
| > | Great, thanks. I've now got indexing working on sparse variables.
| 
| I have a few more questions about indexing
| 
| 1. When M(idx,:) is specified, what is the idx_vector set to
|    for the ':' ?

You can use the method

  int is_colon (void) const;

which returns nonzero if the index is `:'.

| 2. What methods does [ M1, M2 ] map to internally?

Hmm.  None really.  This is something that probably needs to be
changed.  The parser handles the details of matrix construction.  When
I wrote it, I didn't fully anticipate the need to handle other types
of objects in these expressions.

| Also, while putting together a test script for the sparse 
| functions I use exist('__OCTAVE_VERSION__') to destinguish
| octave from Matlab. This no longer works in 2.1.19
| 
|    octave-2.1.19:1> __OCTAVE_VERSION__ 
|    __OCTAVE_VERSION__ = 2.1.19
|    octave-2.1.19:2> exist('__OCTAVE_VERSION__')
|    ans = 0
|    
| However,   
|    octave-2.0.14:1> __OCTAVE_VERSION__
|    __OCTAVE_VERSION__ = 2.0.14
|    octave-2.0.14:2> exist('__OCTAVE_VERSION__')
|    ans = 1

This is a bug that should be fixed now, at least in the CVS archive.

jwe



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



reply via email to

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