logo       

Re: MacOS X 10.3.9 build but load-save.m test failure: msg#00074

gnu.octave.bugs

Subject: Re: MacOS X 10.3.9 build but load-save.m test failure

Jumping back to the list...

On 4/29/05, David Bateman <David.Bateman@xxxxxxxxxxxx> wrote:

> >
> > octave:1> load test11.mat
> > nr,nc,nz: 100 100 100
> > cidx: 0 0 1 2 2 4 4 5 7 7 7 8 9 10 11 12 12 12 13 15 15 16 17 18 19
> > 19 21 21 22 23 25 26 26 26 27 27 30 32 35 36 37 39 42 43 46 46 47 50
> > 51 53 53 53 53 54 55 55 56 56 57 59 59 59 62 63 63 64 66 67 68 68 68
> > 72 73 74 76 79 79 80 80 80 81 81 83 85 86 89 90 91 92 93 93 95 96 96
> > 97 98 98 99 99 100 100
> > ridx: 82 44 2 88 17 20 87 99 37 46 44 37 90 9 66 62 86 55 83 42 84 19
> > 37 33 52 47 38 19 42 70 28 91 13 21 84 85 76 45 98 1 58 83 67 43 61 64
> > 57 6 36 82 64 19 65 63 33 23 90 51 61 14 40 51 7 79 50 72 44 59 33 75
> > 79 89 98 32 57 99 19 28 29 2 61 8 55 7 13 0 19 75 79 19 42 40 18 76 96
> > 97 62 19 33 22
>
> These two look good....
>
> > data: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> > error: load: trouble reading binary file `test11.mat'
>
> This one doesn't.. I think m.xdata() in read_doubles is calling the
> wrong method... The patch attached explicitly calls the right method. I
> hope this works as I have no other ideas....
>
> D.
>
> --
> David Bateman David.Bateman@xxxxxxxxxxxx
> Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
> Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
> 91193 Gif-Sur-Yvette FRANCE
>
> The information contained in this communication has been classified as:
>
> [x] General Business Information
> [ ] Motorola Internal Use Only
> [ ] Motorola Confidential Proprietary
>
>
> --- ov-re-sparse.cc~ 2005-04-29 00:19:27.000000000 +0200
> +++ ov-re-sparse.cc 2005-04-29 09:33:36.534558491 +0200
> @@ -368,7 +368,8 @@
> if (! is.read (X_CAST (char *, &tmp), 1))
> return false;
>
> - read_doubles (is, m.xdata(), X_CAST (save_type, tmp), nz, swap, fmt);
> + double *re = m.xdata ();
> + read_doubles (is, re, X_CAST (save_type, tmp), nz, swap, fmt);
>
> if (error_state || ! is)
> return false;
>
>

Unfortunately this did not help:
octave:1> load test11.mat
nr,nc,nz: 100 100 100
cidx: 0 0 1 2 2 4 4 5 7 7 7 8 9 10 11 12 12 12 13 15 15 16 17 18 19
19 21 21 22 23 25 26 26 26 27 27 30 32 35 36 37 39 42 43 46 46 47 50
51 53 53 53 53 54 55 55 56 56 57 59 59 59 62 63 63 64 66 67 68 68 68
72 73 74 76 79 79 80 80 80 81 81 83 85 86 89 90 91 92 93 93 95 96 96
97 98 98 99 99 100 100
ridx: 82 44 2 88 17 20 87 99 37 46 44 37 90 9 66 62 86 55 83 42 84 19
37 33 52 47 38 19 42 70 28 91 13 21 84 85 76 45 98 1 58 83 67 43 61 64
57 6 36 82 64 19 65 63 33 23 90 51 61 14 40 51 7 79 50 72 44 59 33 75
79 89 98 32 57 99 19 28 29 2 61 8 55 7 13 0 19 75 79 19 42 40 18 76 96
97 62 19 33 22
data: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5.60068e-305 6.36599e-314 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
error: load: trouble reading binary file `test11.mat'



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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise