# Largest Matrix Size for Octave

7 messages
Open this post in threaded view
|

## Largest Matrix Size for Octave

 I've done some online searching, and according to a 6-year-old post, it seems that the largest acceptable matrix size for Octave is 2^31-2 elements, which would use about 16 GB of RAM.  Is this still the case, or do current versions of Octave allow 2^48-1 elements? The 2^48-1 number was obtained from the following post that I saw about MATLAB's limitations: https://www.mathworks.com/matlabcentral/answers/91711-what-is-the-maximum-matrix-size-for-each-platformThis post shows a chart, which gives the above numbers I just mentioned. Here's the 6-year-old Octave post that I talked about: http://octave.1599824.n4.nabble.com/memory-td3427479.htmlIt was from this post that I got the 16 GB number, which leads me to think that this correlates to 2^31-2 elements, based on the MATLAB post. Both of these posts are old.  Does anyone know whether or not Octave now supports matricies which contain 2^48-1 elements? Thanks so much for your time.
Open this post in threaded view
|

## Re: Largest Matrix Size for Octave

 ----- Original Message ----- > From: evansste  > To: help-octave > Cc: > Date: 2017/6/19, Mon 01:57 > Subject: Largest Matrix Size for Octave > > I've done some online searching, and according to a 6-year-old post, it > seems > that the largest acceptable matrix size for Octave is 2^31-2 elements, which > would use about 16 GB of RAM.  Is this still the case, or do current > versions of Octave allow 2^48-1 elements? > > The 2^48-1 number was obtained from the following post that I saw about > MATLAB's limitations: > > https://www.mathworks.com/matlabcentral/answers/91711-what-is-the-maximum-matrix-size-for-each-platform> > This post shows a chart, which gives the above numbers I just mentioned. > > Here's the 6-year-old Octave post that I talked about: > > http://octave.1599824.n4.nabble.com/memory-td3427479.html> > It was from this post that I got the 16 GB number, which leads me to think > that this correlates to 2^31-2 elements, based on the MATLAB post. > > Both of these posts are old.  Does anyone know whether or not Octave now > supports matricies which contain 2^48-1 elements? > > Thanks so much for your time. > On which platform, are you using octave (windows, linux, or mac etcs.)? For windows, octave 4.2.1 binary of with large arrays had been uploaded by me http://octave.1599824.n4.nabble.com/Octave-on-Windows-with-large-arrays-td4682366.html#a4682482HTH Tatsuro _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Re: Largest Matrix Size for Octave

 In reply to this post by evansste --- tmacchant > ----- Original Message ----- > > > From: evansste  > > To: help-octave > > Cc: > > Date: 2017/6/19, Mon 01:57 > > Subject: Largest Matrix Size for Octave > > > > I've done some online searching, and according to a 6-year-old post, it > > seems > > that the largest acceptable matrix size for Octave is 2^31-2 elements, which > > would use about 16 GB of RAM.  Is this still the case, or do current > > versions of Octave allow 2^48-1 elements? > > > > The 2^48-1 number was obtained from the following post that I saw about > > MATLAB's limitations: > > > > https://www.mathworks.com/matlabcentral/answers/91711-what-is-the-maximum-matrix-size-for-each-platform> > > > This post shows a chart, which gives the above numbers I just mentioned. > > > > Here's the 6-year-old Octave post that I talked about: > > > > http://octave.1599824.n4.nabble.com/memory-td3427479.html> > > > It was from this post that I got the 16 GB number, which leads me to think > > that this correlates to 2^31-2 elements, based on the MATLAB post. > > > > Both of these posts are old.  Does anyone know whether or not Octave now > > supports matricies which contain 2^48-1 elements? > > > > Thanks so much for your time. > > > On which platform, are you using octave (windows, linux, or mac etcs.)? > For windows, octave 4.2.1 binary of with large arrays had been uploaded by me > http://octave.1599824.n4.nabble.com/Octave-on-Windows-with-large-arrays-td4682366.html#a4682482> > HTH > > Tatsuro > If you are not a windows user, you have to build octave with related dependencies using 64bit indexing. See : https://www.gnu.org/software/octave/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.htmlHTH Tatsuro _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave
Open this post in threaded view
|

## Re: Re: Largest Matrix Size for Octave

 Thanks for the information, Tatsuro.  The last link is particularly helpful since I'm running Linux. I greatly appreciate your time and help.  Thank you.
Open this post in threaded view
|

## Re: Re: Largest Matrix Size for Octave

 ----- Original Message ----- > From: evansste  > To: help-octave > Cc: > Date: 2017/6/19, Mon 06:29 > Subject: Re: Re: Largest Matrix Size for Octave > >T hanks for the information, Tatsuro.  The last link is particularly helpful > since I'm running Linux. > > I greatly appreciate your time and help.  Thank you. > Hello evansste Although the below described in  ****************************** http://wiki.octave.org/MXE  ****************************** For systems that provide packages of recent versions of GCC and required build dependencies,  MXE-Octave is NOT the best choice for building Octave. I think that MXE-octave for native linux is the one of the option to get numerical libraries with 64bit indexing. See the instruction in the section Compiling for your Linux system Note: In item 6. 6. Type: ./configure --enable-64 --enable-native-build --enable-pic-flag host_alias=gnu-linux --enable-openblas --enable-jit Please add  --enable-octave=stable and --enable-fortran-int64  options as configure options for MXE-octave Tatsuro _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave