[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave-2.1.57, Panther 10.3.4

From: Samir Sharshar
Subject: Octave-2.1.57, Panther 10.3.4
Date: Tue, 22 Jun 2004 09:37:08 +0200


I've posted yesterday a mail concerning poor perfs of Octave build 2.1.57 running on a Panther 10.3.4 release on a BiG5 2 gHz with 4Go RAM. Performances could be greatly enhanced by doing the following:

1. Make sure you have the latest X developper package from Apple (that included gcc 3.3),
2. Download from sourceforge octave-2.1.57 (latest release),
3. Download from the g77 binary and install it,
4. Download from the fftw site the latest (version 3.x) release of libfftw.tar.gz, compile and install (./configure,make,sudo make install),

Supposing you use bash,

export PATH=/usr/local/bin:$PATH
export FLIBS='-L/usr/local/lib -lg2c' for Fortran libraries path
export CPPFLAGS='-mcpu=970 -mtune=970 -mpowerpc64 -mpowerpc-gpopt' to tune the code for G5 processor (thanks to Per Persson)

tar -xzvof octave-2.1.57.tar.gz
cd octave-2.1.57
./configure --disable-readline (to avoid the script complaining of libreadline)
in the config.h change
#undef HAVE_DYLD_API *
#undef HAVE_DYLD_API 1

make and sudo make install to install octave in /usr/local/

Work is done.

If you want to pickup an enhanced .m function for principal component analysis you can take this one:k

#La fonction princomp est une alternative GNU
#a sa cousine Matlab.
#Format :
#[pc,z] = princomp(x)
#pc = composantes principales,
#z = valeurs projetees

function [pc,z]=princomp(x)
C = cov(x);
[U,D,pc] = svd(C);
z = center(x)*pc;

Hope that help....

Any comments appreciated

Samir Sharshar MD
Inserm, Lille, France

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]