PDA

View Full Version : 64 bit octave build


ljbusse
November 14th, 2007, 06:33 PM
Is anyone running a 64 bit version of octave? If so, I'm interested in knowing the result of this command:
[c,s]=computer
What is returned for s?
This is the MAXSIZE of a matrix and I need it to be really big.
Thanks for your help.

jpkotta
November 14th, 2007, 10:27 PM
I get an error with that command. My octave apparently thinks it only returns a scalar.

octave:1> [c,s] = computer
c = x86_64-pc-linux-gnu
error: element number 2 undefined in return list
error: evaluating assignment expression near line 1, column 8
octave:1> s
error: `s' undefined near line 1 column 1

jpkotta
November 15th, 2007, 01:04 PM
Ah, I needed a more up to date octave. The limit is the same as the 32-bit version.
octave:2> [c m e] = computer
c = x86_64-pc-linux-gnu
m = 2.1475e+09
e = L

ljbusse
November 15th, 2007, 05:23 PM
Did you build your new version of octave? If so, were there any flags to enable 64-bit addressing or code generation?
Thanks.

jpkotta
November 15th, 2007, 11:17 PM
I just installed the octave2.9 package.

Edit: I was curious, and I got the source. Apparently there is such an option.

[jpkotta@gauss octave-2.9.17](0)$ ./configure --help
...
--enable-64 (EXPERIMENTAL) use 64-bit integers for array
dimensions and indexing
...

Pinoy915
November 16th, 2007, 12:06 AM
This is what I got:


[c,s]=computer
octave:1> [c,s]=computer
c = x86_64-pc-linux-gnu
s = 2.1475e+09
octave:2>

ljbusse
November 16th, 2007, 11:51 PM
Thanks for the help. I'm a little surprised, 2.1xe+09 is approximately 2^31. I would have expected more from a 64-bit build of octave. :confused: