[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rat and rats ported from octave-forge
From: |
David Bateman |
Subject: |
Re: rat and rats ported from octave-forge |
Date: |
Thu, 26 Jul 2007 17:56:47 +0200 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Donald Parsons wrote:
> David, thanks for the rat/rats support.
>
> (Fedora 6 + octave cvs)
> The format of the rat(s) output seems to be missing a
> new line or two:
> _________________________________________
>
> address@hidden octave]$ octave
> GNU Octave, version 2.9.12+ (and version 2.9.13+)
>
> Octave was configured for "x86_64-unknown-linux-gnu".
>
> octave:1> h=hilb(3)
> h =
>
> 1.00000 0.50000 0.33333
> 0.50000 0.33333 0.25000
> 0.33333 0.25000 0.20000
>
> octave:2> rats(h)
> ans = 1 1/2 1/3
> 1/2 1/3 1/4
> 1/3 1/4 1/5
> _________________________________________
>
>
Opps, ok patch attached..
> On a totally unrelated topic, when I first tried compiling
> octave I couldn't get glpk to be found because ./configure
> looked for /usr/include/glpk.h but it is in glpk sub-
> directory. Rather than edit code, I just put a link in
> /usr/include to fix problem as below. Should auto test
> code be "fixed" so link is not needed?
>
> GLPK libraries: -lglpk
>
> find /usr/include/ -name glpk.h -ls
> lrwx 1 0 11 Jun 28 21:13 /usr/include/glpk.h -> glpk/glpk.h
> -rw- 1 0 24463 Apr 7 16:33 /usr/include/glpk/glpk.h
>
>
Sure why not..
D.
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
*** ./src/pr-output.cc.orig2 2007-07-26 17:55:10.820091559 +0200
--- ./src/pr-output.cc 2007-07-26 17:51:07.700405075 +0200
***************
*** 2764,2769 ****
--- 2764,2771 ----
bool save_rat_format = rat_format;
rat_format = true;
std::ostringstream buf;
+ if (args(0).is_matrix_type ())
+ buf << "\n";
args(0).print (buf);
retval = buf.str ();
rat_format = save_rat_format;
glpk.h, John W. Eaton, 2007/07/26