octave-forge, missing sparse.oct?

Asked by cellstije

Hi there,

I installed octave2.1 and octave2.1-forge (feisty amd64) but i can not use the sparse command for sparse matrix creation
On edgy (32bit) it worked flawlessly. I checked the installed files with adept, but could not find sparse.oct (nor full.oct)
Is the support for sparse matrices removed on purpose or I am supposed to install some other packages?

cheers
Marco

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu octave2.1-forge Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

Apparently sparse.oct is only included in the newer version (Octave2.9).
Please let us know if you need assistance in downloading and installing.

Revision history for this message
cellstije (marco-grimaldi) said :
#2

unfortunately octave2.9 is not an option because it has problems with passing arguments through executable scripts.
If u run the following test program (http://www.gnu.org/software/octave/doc/interpreter/Executable-Octave-Programs.html#Executable-Octave-Programs):

#! /bin/octave -qf
printf ("%s", program_name);
     for i = 1:nargin
       printf (" %s", argv{i});
     endfor
printf ("\n");

you will get:

./test as ar
testerror: built-in function cannot be indexed with {
error: evaluating argument list element number 2
error: evaluating for command near line 4, column 6
error: near line 6 of file `./test'

Revision history for this message
cellstije (marco-grimaldi) said :
#3

the path to octave is

/usr/bin/octave

and not as in the script (/bin/octave)

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

Would getting the sparse.oct file from the octave2.9 package solve your problem?
If so I can tell you how to do that.

Revision history for this message
cellstije (marco-grimaldi) said :
#5

i think that the api has been changed from 2.1.X to 2.9.X.
Not sure it will work
to me it seems to be a packaging error.
In edgy, same octave version, it works (octave and octave-forge installed).

Revision history for this message
Cesare Tirabassi (norsetto) said :
#6

Or you could donwload and compile the sorce code:

http://www.octave.org/cgi-bin/cvsweb.cgi/~checkout~/octave/src/DLD-FUNCTIONS/sparse.cc?rev=HEAD&content-type=text/plain

Even though it might be a trifle difficult to compile it.

Revision history for this message
cellstije (marco-grimaldi) said :
#7

which implies building octave-forge from source ...
doable, but defeats the purpose of using ubuntu debs...

i'll fill a bug...

Revision history for this message
Cesare Tirabassi (norsetto) said :
#8

Yes, sparse.oct is in the edgy repositories, in the octave-forge package.
You could download and install this as a work-around solution, and of course issue a bug report on the octave-forge version for feisty.

Revision history for this message
cellstije (marco-grimaldi) said :
#9

yep, i'll try the edgy version

cheers

Revision history for this message
Cesare Tirabassi (norsetto) said :
#10

Please let me know if installing the edgy version works as a work-around solution.

Revision history for this message
cellstije (marco-grimaldi) said :
#11

the problem can be solved by installing the edgy version of the same
packages (octave and octave-forge)

Cheers

On 5/10/07, Cesare Tirabassi <email address hidden> wrote:
> Your question #6385 on octave2.1-forge in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/octave2.1-forge/+question/6385
>
> Status: Open => Answered
>
> Cesare Tirabassi proposed the following answer:
> Please let me know if installing the edgy version works as a work-around
> solution.
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/octave2.1-forge/+question/6385/+confirm?answer_id=9
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/octave2.1-forge/+question/6385
>

Revision history for this message
Cesare Tirabassi (norsetto) said :
#12

OK, I will add this info in the bug report.

Can you help with this problem?

Provide an answer of your own, or ask cellstije for more information if necessary.

To post a message you must log in.