Discussion:
error using etree function
rpsouto
2018-11-22 15:44:25 UTC
Permalink
Hello all.

The function etree is not working.
A=gallery('poisson',16);
issparse(A)
ans = 1
etree(A)
error: etree: S must be a sparse matrix

This test was performed at versions 4.4.1 and 4.2.2 of GNU Octave
(Ubuntu 18.04).

Regards,

Roberto.
Dmitri A. Sergatskov
2018-11-22 17:19:19 UTC
Permalink
Post by rpsouto
Hello all.
The function etree is not working.
A=gallery('poisson',16);
issparse(A)
ans = 1
etree(A)
error: etree: S must be a sparse matrix
This test was performed at versions 4.4.1 and 4.2.2 of GNU Octave
(Ubuntu 18.04).
On Fedora (octave 4.4.1) I see:

octave -f -q
octave:1> A=gallery('poisson',16);
octave:2> issparse A
ans = 0
octave:3> __octave_config_info__ ("hg_id")
ans = 1f46d371968c
Post by rpsouto
Regards,
Roberto.
Dmitri.
--
Marco Atzeri
2018-11-22 17:50:19 UTC
Permalink
Post by rpsouto
Hello all.
The function etree is not working.
A=gallery('poisson',16);
issparse(A)
ans = 1
etree(A)
error: etree: S must be a sparse matrix
This test was performed at versions 4.4.1 and 4.2.2 of GNU Octave
(Ubuntu 18.04).
octave -f -q
octave:1> A=gallery('poisson',16);
octave:2> issparse A
ans = 0
you are missing the parenthesis

octave:8> issparse A
ans = 0
octave:9> issparse(A)
ans = 1



---
Diese E-Mail wurde von Avast Antivirus-Softwar
Kai Torben Ohlhus
2018-11-22 17:45:57 UTC
Permalink
Post by Dmitri A. Sergatskov
octave:1> A=gallery('poisson',16);
octave:2> issparse A
etree(speye (2))
error: etree: S must be a sparse matrix

I think it is worth a bug report...

Kai
mmuetzel
2018-11-22 20:32:44 UTC
Permalink
There was an error in the input argument check for etree. This and an
additional segmentation fault should be fixed with this change:
http://hg.savannah.gnu.org/hgweb/octave/rev/0c7a9fa16998

Markus



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
Loading...