Stefan van der Walt | 1 Apr 12:07 2005
Picon
Picon

Re: bug in imshow with all negative values

On Thu, Mar 31, 2005 at 11:07:08AM -0500, John W. Eaton wrote:
> Yes, the patch to imshow looks OK to me.  But rather than introducing
> a function that can only return the max value, how about something
> like this:
> 
>   s = numeric_limits (class (pi))
> 
>   => s.epsilon = 2.2204e-16
>      s.is_exact = false
>      s.is_integer = false
>      s.is_signed = true
>      s.min = 2.2251e-308
>      s.max = 1.7977e+308
> 
>   s = numeric_limits (class (uint8 (1)))
> 
>   => s.epsilon = 0
>      s.is_exact = true
>      s.is_integer = true
>      s.is_signed = false
>      s.min = 0
>      s.max = 255
> 
> and perhaps include all the fields that are available in the C++
> numeric_limits class defined in the <limits> header?
> 
> This function would return an error if given a class that was not a
> numeric type.

That'd be perfect!
(Continue reading)

Etienne de Foras | 1 Apr 12:08 2005
Picon

Re: bug in imshow and one more question about types float32

Hello,

Thanks for your quick response !

I have just a other problem about types (is it a bug?):
I am using huges matrixes that fit just in the memory, if I could store them as float32, it could
be  enough for me.
But if I use fread() or zeros() or ones() , and so on, with the "float32" arguments, it give me a
double type , is there a way to create and use the float32 type?
Or perhaps it is just a compilation flag that I forgoted?

version=2.1.67 on Mandrake 10.1

See you

Etienne de Foras

	

	
		
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

-------------------------------------------------------------
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
(Continue reading)

John W. Eaton | 1 Apr 18:26 2005
Picon

Re: bug in imshow and one more question about types float32

On  1-Apr-2005, Etienne de Foras <e_deforas <at> yahoo.fr> wrote:

| I have just a other problem about types (is it a bug?):
| I am using huges matrixes that fit just in the memory, if I could store them as float32, it could
| be  enough for me.
| But if I use fread() or zeros() or ones() , and so on, with the "float32" arguments, it give me a
| double type , is there a way to create and use the float32 type?

It is not implemented yet.

jwe

-------------------------------------------------------------
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
-------------------------------------------------------------

John W. Eaton | 1 Apr 20:09 2005
Picon

Assignment to subarray of ND array fails

On 31-Mar-2005, Quentin Spencer <qspencer <at> ieee.org> wrote:

| The following commands all work in Matlab 7, and fail in Octave 2.1.69:
| 
| octave:1> a(:,:,1)=ones(2);
| octave:2> b(:,1,:)=ones(2);
| error: A(IDX-LIST) = X: X must be a scalar or size of X must equal 
| number of elements indexed by IDX-LIST
| error: assignment failed, or no method for `matrix = matrix'
| error: evaluating assignment expression near line 2, column 9
| octave:2> c(1,:,:)=ones(2);
| error: A(IDX-LIST) = X: X must be a scalar or size of X must equal 
| number of elements indexed by IDX-LIST
| error: assignment failed, or no method for `matrix = matrix'
| error: evaluating assignment expression near line 2, column 9

Please try the following patch.

Thanks,

jwe

2005-04-01  John W. Eaton  <jwe <at> octave.org>

	* Array.cc (assignN): For A(IDX-LIST) = RHS with A previously
	undefined, correctly match colons in IDX-LIST with RHS dimensions
	when resizing A.  When performing the assignment, just check that
	the number of elements in RHS matches the number of elements
	indexed by IDX-LIST.

(Continue reading)

Stefan van der Walt | 3 Apr 16:30 2005
Picon
Picon

Re: bug in imshow with all negative values

Here's the new patch.

I added the function __im_numeric_limits to imshow.m.  This can be
replaced with 'numeric_limits' once it is done.  I only made use of
the 'max' attribute.

Regards
Stefan

On Thu, Mar 31, 2005 at 11:07:08AM -0500, John W. Eaton wrote:
> On 31-Mar-2005, Stefan van der Walt <stefan <at> sun.ac.za> wrote:
> 
> | I have taken out the depth guessing in my latest patch to imshow.
> | 
> | John, are you comfortable with the latest version of the patch?
> | Should I implement a function similar to "classmax" in bitfcns.cc?
> 
> Sorry for the delay.
> 
> Yes, the patch to imshow looks OK to me.  But rather than introducing
> a function that can only return the max value, how about something
> like this:
> 
>   s = numeric_limits (class (pi))
> 
>   => s.epsilon = 2.2204e-16
>      s.is_exact = false
>      s.is_integer = false
>      s.is_signed = true
>      s.min = 2.2251e-308
(Continue reading)

Jiří Poláček | 4 Apr 11:50 2005
Picon

function cumsum aborts octave

Dimension equal to the number 3 gets Octave into a trouble, see example:
--------
GNU Octave, version 2.1.55 (i686-suse-linux).
Copyright (C) 2004 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <bug-octave <at> bevo.che.wisc.edu> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

octave:1> v=1:5
v =

  1  2  3  4  5

octave:2>
octave:2> cumsum(v,3)
octave: dim-vector.h:104: int& dim_vector::dim_vector_rep::elem(int): 
Assertion `i >= 0 && i < ndims' failed.
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Neúspěšně ukončen (SIGABRT)
-----------

Jiri Polacek, SVI ESF MU Brno
(Continue reading)

John W. Eaton | 4 Apr 23:05 2005
Picon

function cumsum aborts octave

On  4-Apr-2005, Jiří Poláček <polacek <at> econ.muni.cz> wrote:

| Dimension equal to the number 3 gets Octave into a trouble, see example:
| --------
| GNU Octave, version 2.1.55 (i686-suse-linux).
| Copyright (C) 2004 John W. Eaton.
| This is free software; see the source code for copying conditions.
| There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
| FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
| 
| Please contribute if you find this software useful.
| For more information, visit http://www.octave.org/help-wanted.html
| 
| Report bugs to <bug-octave <at> bevo.che.wisc.edu> (but first, please read
| http://www.octave.org/bugs.html to learn how to write a helpful report).
| 
| octave:1> v=1:5
| v =
| 
|   1  2  3  4  5
| 
| octave:2>
| octave:2> cumsum(v,3)
| octave: dim-vector.h:104: int& dim_vector::dim_vector_rep::elem(int): 
| Assertion `i >= 0 && i < ndims' failed.
| panic: Aborted -- stopping myself...
| attempting to save variables to `octave-core'...
| save to `octave-core' complete

I think this problem is fixed in later versions.  2.1.69 is the
(Continue reading)

Shai Ayal | 5 Apr 10:40 2005

Unidentified subject!

To: bug <at> octave.org
Cc: shaia
Subject: replot() does not work
--------
Bug report for Octave 2.1.68 configured for i686-pc-linux-gnu

Description:
-----------

note lines 82,83: replot() fails while replot works. also, "which
replot" does not work while "which hold" looks fine. also, "help
replot" is OK.

octave:82> type __axis_label__
parse error near line 36 of file /usr/local/share/octave/2.1.68/m/plot/__axis_label__.m

  syntax error

>>>     replot ();
             ^

octave:82> replot ()
parse error:

  syntax error

>>> replot ()
            ^

octave:82> replot
(Continue reading)

John W. Eaton | 5 Apr 14:42 2005
Picon

Unidentified subject!

On  5-Apr-2005, Shai Ayal <shaia <at> mars.bioc> wrote:

| To: bug <at> octave.org
| Cc: shaia
| Subject: replot() does not work
| --------
| Bug report for Octave 2.1.68 configured for i686-pc-linux-gnu
| 
| Description:
| -----------
| 
| note lines 82,83: replot() fails while replot works. also, "which
| replot" does not work while "which hold" looks fine. also, "help
| replot" is OK.

I think these problems were already reported:

  http://www.octave.org/mailing-lists/bug-octave/2005/348

and fixed:

  http://www.octave.org/mailing-lists/bug-octave/2005/349

jwe

-------------------------------------------------------------
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
(Continue reading)

Wlmsears Comcast | 11 Apr 00:36 2005
Picon
Picon

fscanf performance >10x slower in 2.1.69 compared to 2.1.50 on Windows

This comparison was made using the octave-forge pre-built binaries compared 
to a recent local build of 2.1.69 using the latest (gcc 3.3.3) cygwin 
package. This isn't a benchmark, but rather a real problem.

I open a file that contains a large matrix (about 500 x 1000 elements), and 
read it with

    V = fscanf(fd, "%f", [1000,500]);

Under 2.1.50 this takes a bit less than 2 seconds. Under 2.1.69, it takes 
about 23 seconds on my system. I am running Windows XP with 3.2GHz Intel 
processor 2GB ram.  For configuration, I used

./configure --enable-shared --disable-static

Bill Sears

-------------------------------------------------------------
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
-------------------------------------------------------------


Gmane