[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 27Nov1999, A+A Adler <address@hidden> wrote:
 On Tue, 16 Nov 1999, John W. Eaton wrote:
 > On 16Nov1999, 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

 octave2.1.19:1> __OCTAVE_VERSION__
 __OCTAVE_VERSION__ = 2.1.19
 octave2.1.19:2> exist('__OCTAVE_VERSION__')
 ans = 0

 However,
 octave2.0.14:1> __OCTAVE_VERSION__
 __OCTAVE_VERSION__ = 2.0.14
 octave2.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

 Re: Sparse functions for octave, A+A Adler, 1999/11/13
 Re: Sparse functions for octave, John W. Eaton, 1999/11/13
 Re: Sparse functions for octave, A+A Adler, 1999/11/15
 Re: Sparse functions for octave, John W. Eaton, 1999/11/15
 Re: Sparse functions for octave, A+A Adler, 1999/11/16
 Re: Sparse functions for octave, John W. Eaton, 1999/11/16
 Re: Sparse functions for octave, A+A Adler, 1999/11/26
 Re: Sparse functions for octave, Mike Miller, 1999/11/27
 Re: Sparse functions for octave,
John W. Eaton <=