Quesion about test_io.m

View: New views
9 Messages — Rating Filter:   Alert me  

Quesion about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

In test_io.m,

line 76-84

%!  files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"};
%!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
%!  tols = {2*eps, 0, 0, 0};
%!
%!  vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20";
%!  if (! input)
%!    for i = 1:length (files)
%!      eval (sprintf ("save %s %s %s", opts{i}, files{i}, vars));
%!    endfor


%!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}; ????


help save
    :
    :
   `-z'
         Use the gzip algorithm to compress the file. This works
         equally on files that are compressed with gzip outside of
         octave, and gzip can equally be used to convert the files for
         backward compatibility.
Is
%!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
correct?

I think it should be
%!  opts = {"-text", "-binary", "-mat", "-v7"}; ?

Any comments?

Regards

Tatsuro

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

Re: Question about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

This is the previous post but no reply have not gotten yet.

http://www.nabble.com/Quesion-about-test_io.m-td22074114.html#a22074114

Is my question stupid?

Regards

Tatsuro

--- Tatsuro MATSUOKA wrote:

> Hello
>
> In test_io.m,
>
> line 76-84
>
> %!  files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"};
> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
> %!  tols = {2*eps, 0, 0, 0};
> %!
> %!  vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20";
> %!  if (! input)
> %!    for i = 1:length (files)
> %!      eval (sprintf ("save %s %s %s", opts{i}, files{i}, vars));
> %!    endfor
>
>
> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}; ????
>
>
> help save
>     :
>     :
>    `-z'
>          Use the gzip algorithm to compress the file. This works
>          equally on files that are compressed with gzip outside of
>          octave, and gzip can equally be used to convert the files for
>          backward compatibility.
> Is
> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
> correct?
>
> I think it should be
> %!  opts = {"-text", "-binary", "-mat", "-v7"}; ?
>
> Any comments?
>
> Regards
>
> Tatsuro
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

Re: Question about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Is my question stupid?

I would like to know whether my question is stupid or not.
 
Regards

Tatsuro

--- Tatsuro MATSUOKA  wrote:

> Hello
>
> This is the previous post but no reply have not gotten yet.
>
> http://www.nabble.com/Quesion-about-test_io.m-td22074114.html#a22074114
>
> Is my question stupid?
>
> Regards
>
> Tatsuro
>
> --- Tatsuro MATSUOKA wrote:
>
> > Hello
> >
> > In test_io.m,
> >
> > line 76-84
> >
> > %!  files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"};
> > %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
> > %!  tols = {2*eps, 0, 0, 0};
> > %!
> > %!  vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20";
> > %!  if (! input)
> > %!    for i = 1:length (files)
> > %!      eval (sprintf ("save %s %s %s", opts{i}, files{i}, vars));
> > %!    endfor
> >
> >
> > %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}; ????
> >
> >
> > help save
> >     :
> >     :
> >    `-z'
> >          Use the gzip algorithm to compress the file. This works
> >          equally on files that are compressed with gzip outside of
> >          octave, and gzip can equally be used to convert the files for
> >          backward compatibility.
> > Is
> > %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
> > correct?
> >
> > I think it should be
> > %!  opts = {"-text", "-binary", "-mat", "-v7"}; ?
> >
> > Any comments?
> >
> > Regards
> >
> > Tatsuro
> >
> > --------------------------------------
> > Power up the Internet with Yahoo! Toolbar.
> > http://pr.mail.yahoo.co.jp/toolbar/
> >
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

Re: Question about test_io.m

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tasuro,

Your question is with regards to the including the compression option,  
"-z" in all options, correct?

I recall some discussion about compression a few weeks ago, but do not  
remember the details.

Why should the "-z" be removed?

Ben

On Apr 8, 2009, at 6:32 AM, Tatsuro MATSUOKA wrote:

> Hello
>
> Is my question stupid?
>
> I would like to know whether my question is stupid or not.
>
> Regards
>
> Tatsuro
>
> --- Tatsuro MATSUOKA  wrote:
>
>> Hello
>>
>> This is the previous post but no reply have not gotten yet.
>>
>> http://www.nabble.com/Quesion-about-test_io.m-td22074114.html#a22074114
>>
>> Is my question stupid?
>>
>> Regards
>>
>> Tatsuro
>>
>> --- Tatsuro MATSUOKA wrote:
>>
>>> Hello
>>>
>>> In test_io.m,
>>>
>>> line 76-84
>>>
>>> %!  files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"};
>>> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
>>> %!  tols = {2*eps, 0, 0, 0};
>>> %!
>>> %!  vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16  
>>> a17 a18 a19 a20";
>>> %!  if (! input)
>>> %!    for i = 1:length (files)
>>> %!      eval (sprintf ("save %s %s %s", opts{i}, files{i}, vars));
>>> %!    endfor
>>>
>>>
>>> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}; ????
>>>
>>>
>>> help save
>>>    :
>>>    :
>>>   `-z'
>>>         Use the gzip algorithm to compress the file. This works
>>>         equally on files that are compressed with gzip outside of
>>>         octave, and gzip can equally be used to convert the files  
>>> for
>>>         backward compatibility.
>>> Is
>>> %!  opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
>>> correct?
>>>
>>> I think it should be
>>> %!  opts = {"-text", "-binary", "-mat", "-v7"}; ?
>>>
>>> Any comments?
>>>
>>> Regards
>>>
>>> Tatsuro
>>>
>>> --------------------------------------
>>> Power up the Internet with Yahoo! Toolbar.
>>> http://pr.mail.yahoo.co.jp/toolbar/
>>>
>>
>>
>> --------------------------------------
>> Power up the Internet with Yahoo! Toolbar.
>> http://pr.mail.yahoo.co.jp/toolbar/
>>
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/


Re: Question about test_io.m

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/4/8 Tatsuro MATSUOKA <tmacchant@...>:

> Hello
>
> Is my question stupid?
>
> I would like to know whether my question is stupid or not.
>
> Regards
>
> Tatsuro
>

Which question? :) If the -z option is tested elsewhere, then it is
probably redundant. If not, then maybe it should.
Maybe with such trivial changes, you can risk making a patch straight
away. I usually mark messages containing patches if I can't deal with
them at the moment, so a patch has a much lower risk of being
forgotten, at least by me.

cheers

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

Re: Question about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Ben and Jaroslav

Thak you for yor reply and Sorry for my ambiguous writing.

The opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};

seem to make the test fall into infinite loop for my mingw build of octave.

The opts = {"-text", "-binary", "-mat", "-v7"};

went well fine. With unknown reasons, the error by '-z' vanished once and however it came back soon
:-(.

The above is one of the reason why I asked for.

>Which question? :) If the -z option is tested elsewhere, then it is
probably redundant. If not, then maybe it should.

I have installed gzip in the directory where PATH pointed.

I cannot resolved error.

Regards

Tatsuro  

--- Ben Abbott  wrote:

 Tasuro,

>
> Your question is with regards to the including the compression option,  
> "-z" in all options, correct?
>
> I recall some discussion about compression a few weeks ago, but do not  
> remember the details.
>
> Why should the "-z" be removed?
>
> Ben

--- Jaroslav Hajek  wrote:
Which question? :) If the -z option is tested elsewhere, then it is
probably redundant. If not, then maybe it should.
Maybe with such trivial changes, you can risk making a patch straight
away. I usually mark messages containing patches if I can't deal with
them at the moment, so a patch has a much lower risk of being
forgotten, at least by me.


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

Re: Question about test_io.m

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/4/9 Tatsuro MATSUOKA <tmacchant@...>:

> Hello Ben and Jaroslav
>
> Thak you for yor reply and Sorry for my ambiguous writing.
>
> The opts = {"-z -text", "-z -binary", "-z -mat", "-v7"};
>
> seem to make the test fall into infinite loop for my mingw build of octave.
>
> The opts = {"-text", "-binary", "-mat", "-v7"};
>
> went well fine. With unknown reasons, the error by '-z' vanished once and however it came back soon
> :-(.
>
> The above is one of the reason why I asked for.
>

Well, unless you see anything wrong with the test (which I don't),
then a failing test is surely not a reason to fix the test, but rather
to find the bug!
Tray to entering the save commands resulting from the test manually.
Do they work?



--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

Re: Question about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jaroslav

Thank you for your rely.
--- Jaroslav Hajek wrote:

>
> Well, unless you see anything wrong with the test (which I don't),
> then a failing test is surely not a reason to fix the test, but rather
> to find the bug!
> Tray to entering the save commands resulting from the test manually.
> Do they work?
>

I have already tried but have not worked with '-x'.
However Benjamin, who also uses GCC-mingw-TDM complier, did not report this kind of error.

I am now replacing external libraries, which were built by gcc-3.4.5 on mingw, by those by built by
gcc-4.3.3-dw2-TDM.  As replacing process, the error on test_io..m  was disappeared.  
However, after fully replacing, the same error came back again.

Unfortunately I have not reserved libraries, by which, the test_io.m worked correct, so that I have
not find what is wrong.

I will try the test on gdb.  

Regards

Tatsuro


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

Re: Question about test_io.m

by Tatsuro MATSUOKA-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jaroslav

Solved!!

I have used the zlib library provided by Gnuwin32.
Perhaps zlib.dll might not work correctly for octave case.
(There found no problems for gnuplot building.)

I have downloaded the source of zlib-1.2.3 and build static library by myself.
I have rebuild octave with this libz.a and carried out make check.

All test including test_io.m without problem.

Summary:

  PASS   4127
  FAIL      0

Thanks!!

Tatsuro

 

--- Tatsuro MATSUOKA  wrote:

> Hello Jaroslav
>
> Thank you for your rely.
> --- Jaroslav Hajek wrote:
>
> >
> > Well, unless you see anything wrong with the test (which I don't),
> > then a failing test is surely not a reason to fix the test, but rather
> > to find the bug!
> > Tray to entering the save commands resulting from the test manually.
> > Do they work?
> >
>
> I have already tried but have not worked with '-x'.
> However Benjamin, who also uses GCC-mingw-TDM complier, did not report this kind of error.
>
> I am now replacing external libraries, which were built by gcc-3.4.5 on mingw, by those by built
> by
> gcc-4.3.3-dw2-TDM.  As replacing process, the error on test_io..m  was disappeared.  
> However, after fully replacing, the same error came back again.
>
> Unfortunately I have not reserved libraries, by which, the test_io.m worked correct, so that I
> have
> not find what is wrong.
>
> I will try the test on gdb.  
>
> Regards
>
> Tatsuro
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/