[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sparse functions for octave
From: |
A+A Adler |
Subject: |
Re: Sparse functions for octave |
Date: |
Fri, 29 Oct 1999 23:03:53 -0400 (EDT) |
On Tue, 26 Oct 1999, John W. Eaton wrote:
> No, and there are many other differences in the way the octave_value
> class is implemented. You are better off using the 2.1.x sources, I
> think. Also, the interface is likely to change, but only in the 2.1.x
> sources. I don't have the time to put any changes back into the 2.0.x
> sources now.
I've downloaded 2.1.19 and have modified my make_sparse to
work with it. I got binary operators to work ( * .* \ == ),
but got errors with unitary operators ( x' -x etc.).
Then I tried this with the make_int.cc from 2.1.19 and
found the same problem.
A:> cp /usr/src/octave-2.1.19/examples/make_int.cc .
A:> mkoctfile make_int.cc
A:> octave -q
octave:1> x=make_int(4);y=make_int(5);
installing integer type at type-id = 18
installing integer type at type-id = 18
octave:2> x+y
ans = 9
octave:2> x==y
ans = 0
octave:4> x'
error: unary operator `'' not implemented for `integer' operands
error: evaluating postfix operator `'' near line 4, column 1
octave:4> -x
error: unary operator `-' not implemented for `integer' operands
error: evaluating prefix operator `-' near line 4, column 1
I suspect that there is a bug in make_int.cc in 2.1.19
______________________________________________________________
Andy Adler, address@hidden
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------