From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3446 invoked by alias); 12 Dec 2001 23:52:56 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 3433 invoked from network); 12 Dec 2001 23:52:54 -0000 Received: from unknown (HELO cmailg3.svr.pol.co.uk) (195.92.195.173) by sources.redhat.com with SMTP; 12 Dec 2001 23:52:54 -0000 Received: from modem-44.bicolor-angel.dialup.pol.co.uk ([62.136.229.44] helo=debian) by cmailg3.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 16EJe4-0000D6-00; Thu, 13 Dec 2001 00:22:40 +0000 Received: from bjg by debian with local (Exim 2.05 #1 (Debian)) id 16EIfm-00005c-00; Wed, 12 Dec 2001 23:20:22 +0000 From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15383.58934.218222.495035@debian> Date: Wed, 19 Dec 2001 13:20:00 -0000 To: Fleur Kelpin Cc: Subject: Re: fprintf for blocks/vectors: why the \n? In-Reply-To: References: X-Mailer: VM 6.62 under Emacs 19.34.1 X-SW-Source: 2001/txt/msg00131.txt.bz2 Fleur Kelpin writes: > If the automatic \n in block/fprintf_source.c were to go, people could > provide the format "%g\n" or "%g\t" or anything they like. Hi, That function is just intended as an ascii version of the binary write function, for portability purposes. Hence it dumps the list of numbers to the stream without any structure. > The way things are now, I find I am writing my own for loops for printing, > whereas gsl tries to provide this functionality. Yes, to actually display a vector or matrix you'll need to write your own (little) display routine which prints them in your favorite format. Then you can call one of those routines whenever you need to display a vector or matrix. If somebody writes some good routines they can go into the library. Ideally they should be able to display in all the standard formats like Fortran, Octave, HTML, TeX, troff, etc using an argument to select between them. regards Brian From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3446 invoked by alias); 12 Dec 2001 23:52:56 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 3433 invoked from network); 12 Dec 2001 23:52:54 -0000 Received: from unknown (HELO cmailg3.svr.pol.co.uk) (195.92.195.173) by sources.redhat.com with SMTP; 12 Dec 2001 23:52:54 -0000 Received: from modem-44.bicolor-angel.dialup.pol.co.uk ([62.136.229.44] helo=debian) by cmailg3.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 16EJe4-0000D6-00; Thu, 13 Dec 2001 00:22:40 +0000 Received: from bjg by debian with local (Exim 2.05 #1 (Debian)) id 16EIfm-00005c-00; Wed, 12 Dec 2001 23:20:22 +0000 From: Brian Gough MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15383.58934.218222.495035@debian> Date: Wed, 05 Dec 2001 13:33:00 -0000 To: Fleur Kelpin Cc: Subject: Re: fprintf for blocks/vectors: why the \n? In-Reply-To: References: X-Mailer: VM 6.62 under Emacs 19.34.1 X-SW-Source: 2001-q4/txt/msg00131.txt.bz2 Message-ID: <20011205133300.VZEoYBNGZ0XysnkftSgU-NLsPHzHnA3Fa2b45oQkLkQ@z> Fleur Kelpin writes: > If the automatic \n in block/fprintf_source.c were to go, people could > provide the format "%g\n" or "%g\t" or anything they like. Hi, That function is just intended as an ascii version of the binary write function, for portability purposes. Hence it dumps the list of numbers to the stream without any structure. > The way things are now, I find I am writing my own for loops for printing, > whereas gsl tries to provide this functionality. Yes, to actually display a vector or matrix you'll need to write your own (little) display routine which prints them in your favorite format. Then you can call one of those routines whenever you need to display a vector or matrix. If somebody writes some good routines they can go into the library. Ideally they should be able to display in all the standard formats like Fortran, Octave, HTML, TeX, troff, etc using an argument to select between them. regards Brian