help-octave
[Top][All Lists]
Advanced

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

Re: [octave] file i/o performance


From: Henry F. Mollet
Subject: Re: [octave] file i/o performance
Date: Wed, 25 May 2005 14:42:55 -0700
User-agent: Microsoft-Entourage/10.1.1.2418

on 5/25/05 9:04 AM, Søren Hauberg at address@hidden wrote:

> Keith Goodman wrote:
>> On 5/25/05, Søren Hauberg <address@hidden> wrote:
>> 
>>> I had parts of strcmp implemented in C++, so I just finished it. For the
>>> tests I have performed this is about 40 times faster than the version
>>> shipped with Octave. Use it if you like...
>> 
>> 
>> That should speed up many parts of Octave since strcmp is used all
>> over the place. Do I compile this with mkoctfile?
> Yep! You simply do:
> mkoctfile strcmp.cc
> 
> and place the resulting strcmp.oct somewhere in your path. You can make
> sure you're using the compiled version with
> which strcmp
> 
> /Søren
> 

Can somebody please tell me why strcmp, a comparison of 2 strings is used
all over the place in Octave?

For practice, I've also tried to compile strcmp.cc at the shell prompt using
mkoctfile but it did not work for me.
Henry

[~/cando] tcsh:17> ls
FitSine                    hello.cc                   strcmp.cc

[~/cando] tcsh:18> pwd
/Users/mollet/CandO
[~/cando] tcsh:19> mkoctfile strcmp.cc
strcmp.cc: In function `octave_value_list Fstrcmp(const octave_value_list&,
   int)':
strcmp.cc:68: error: `boolNDArray' undeclared (first use this function)
strcmp.cc:68: error: (Each undeclared identifier is reported only once for
each 
   function it appears in.)
strcmp.cc:68: error: parse error before `(' token
strcmp.cc:70: error: no match for call to `(Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:71: error: `output' undeclared (first use this function)
strcmp.cc:71: error: no match for call to `(Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:83: warning: ISO C++ forbids declaration of `dim_vector' with no
type
strcmp.cc:83: error: uninitialized const `dim_vector'
strcmp.cc:83: error: parse error before `=' token
strcmp.cc:84: warning: ISO C++ forbids declaration of `dim_vector' with no
type
strcmp.cc:84: error: redeclaration of `const int dim_vector'
strcmp.cc:83: error: `const int dim_vector' previously declared here
strcmp.cc:84: error: declaration of `const int dim_vector'
strcmp.cc:83: error: conflicts with previous declaration `const int
dim_vector'
strcmp.cc:84: error: uninitialized const `dim_vector'
strcmp.cc:84: error: parse error before `=' token
strcmp.cc:85: error: `size1' undeclared (first use this function)
strcmp.cc:85: error: `size2' undeclared (first use this function)
strcmp.cc:90: error: parse error before `(' token
strcmp.cc:92: error: no match for call to `(const Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:92: error: no match for call to `(const Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:93: error: no match for call to `(const Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:94: error: no match for call to `(const Cell) (int&)'
/sw/include/octave-2.1.46/octave/Array2.h:148: error: candidates are: T&
   Array2<T>::operator()(int, int) [with T = octave_value]
/sw/include/octave-2.1.46/octave/Array2.h:164: error:                 T
   Array2<T>::operator()(int, int) const [with T = octave_value]
strcmp.cc:83: warning: unused variable `const int dim_vector'
[~/cando] tcsh:20> ls



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

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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