public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Brian Gough <bjg@network-theory.co.uk>
To: Hiroyuki Kawakatsu <hkawakat@sk.tsukuba.ac.jp>
Cc: gsl-discuss@sources.redhat.com
Subject: Re: gsl
Date: Wed, 19 Dec 2001 13:20:00 -0000	[thread overview]
Message-ID: <15295.419.976381.841482@debian> (raw)
In-Reply-To: <20011006.061611.01366834.hkawakat@sk.tsukuba.ac.jp>

Hiroyuki Kawakatsu writes:
 > i have some comments and questions regarding gsl (i am using
 > version 0.9.2 on windoze 2000).

Hi, 
Thanks for your comments.

 >  (1) the major problem with the current implementation is that
 > matrices are stored in row-major order. since i have been writing
 > codes that link with dll's built from fortran codes, i have assumed
 > all matrices will be stored in column-major order. for me to really
 > use gsl, i really need an option to store matrices in column-major
 > order.  for example, tnt (template numerical toolkit
 > http://math.nist.gov/tnt/ ) supports a fortran_matrix type in
 > addition to the row-major order c style matrix type and intel's
 > math kernel library has an argument (at least in cblas) to specify
 > the major order (isn't this the cblas standard's recommendation?)

Sorry, it's a C-library so we use arrays in the C convention for the
gsl_matrix object.

To support both conventions would either reduce the efficiency or
require separate handling of the two cases.  TNT uses C++ templates to
handle both cases separately, but this is not feasible in C.

The CBLAS standard does specify an argument for both conventions, and
the GSL CBLAS routines support that.

 > (2) in the documentation, it is mentioned that you can link with
 > atlas for cblas. is it possible to link with intel's math kernel
 > library's cblas? if so, it would be very nice if you could document
 > how to do so.

The section "Compiling and Linking" in Chapter 2 of the manual
describes how to link with an alternate CBLAS library.  Assuming the
library follows the CBLAS standard no changes are required to the
code, just to specify the library on the link options.

Intel's math library is not free software, so we don't comment on it
specifically.  We recommend ATLAS, which is free software.

 >  (3) i am a bit disappointed with the optimization routines which
 > seem to be fairly incomplete at this stage. (i am quite happy with
 > the pseudo-random number generator routines which are up-to-date.)
 > i tried to test the non-linear least squares routine using the nist
 > problems http://www.itl.nist.gov/div898/strd/nls/nls_main.shtml but
 > don't seem to get any accuracy at all. i am skeptical with the
 > claim in the documentation that the routines are based on minpack
 > since the dll version of minpack passes most of the nist test
 > problems. of course, there may be some problems with my c++ code
 > (which i had to convert to row-major ordering). if you have tested
 > the code with the nist problems, i would like to see the results
 > (and code).

I haven't run the NIST problems, but you'll find a working test
program in the multifit/ directory.

If you still have problems after checking the program send the code
the gsl-discuss@sources.redhat.com list for comments.

 >  (4) for the percentile function
 > gsl_stats_quantile_from_sorted_data(), i suggest that you provide
 > options as described in
 >  Rob J. Hyndman and Yanan Fan (1996) "Sample quantiles in
 > statistical packages," American Statistician, 50 361-365.

I'll take a look at that paper next time I'm at the library.

best regards,

Brian Gough

       reply	other threads:[~2001-12-19 13:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20011006.061611.01366834.hkawakat@sk.tsukuba.ac.jp>
2001-12-19 13:20 ` Brian Gough [this message]
2001-12-19 13:20 ` gsl Brian Gough
     [not found] <5.1.1.6.0.20041005225016.0309a950@mail.interfree.it>
2004-10-11 15:22 ` GSL Brian Gough
     [not found] <B67877F9-14C4-11D8-9744-000A9575DDB2@iastate.edu>
2003-11-13 11:39 ` GSL Andrea Riciputi
2003-11-13 13:26   ` GSL Andrea Riciputi
     [not found] <3ED52B49.DCC4B4D6@ucalgary.ca>
2003-05-29 10:36 ` GSL Brian Gough
     [not found] <000a01c1eabf$c4050140$196ca8c0@civil.auc.dk>
2002-12-31  9:55 ` gsl Brian Gough
2002-04-23 13:59   ` gsl Brian Gough
2002-07-10 12:03 GSL John Aquilina
2002-07-11 14:39 ` GSL Brian Gough
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 gsl Edwin Robert Tisdale
2000-11-27 10:37 GSL Jens Lenge
2000-11-27 12:20 ` GSL Gerard Jungman
2000-11-27 12:22 ` GSL Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15295.419.976381.841482@debian \
    --to=bjg@network-theory.co.uk \
    --cc=gsl-discuss@sources.redhat.com \
    --cc=hkawakat@sk.tsukuba.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).