public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Brian Gough <bjg@network-theory.co.uk>
To: Kai Trukenmueller <trukenm@ag2.mechanik.tu-darmstadt.de>
Cc: gsl-discuss@sources.redhat.com
Subject: Re: gsl_multifit
Date: Wed, 19 Dec 2001 13:20:00 -0000	[thread overview]
Message-ID: <15308.43367.776262.834557@debian> (raw)
In-Reply-To: <20011016225100.A6728@abb121.ram1st.wh.tu-darmstadt.de>

Kai Trukenmueller writes:
 > The problem A*x=b with A not square leeds to x = (A^T *A)^-1 A^T *b
 > at least analytically.  That should be equivalent to a
 > multidimensional fitting, as in `gsl_multifit_linear'.  I
 > implemented an example and it works good.
 >  Than I compared it to a simple octave (a free matlab clone)
 > routine, using x=A\b;
 >  The results are the same (as it should be), but it surprised me a
 > lot, that the octave-script works _much_ faster for high dimensions
 > than the compiled C programm. It seems, that these algorithems are
 > better.
 >  Is that a known problem, or did I use the wrong routines.  Is
 > there any better way for solving A x = b?

That sounds like the correct routine. Can you send your program and
benchmarks.  I have not compared the two myself.  I would expect
Octave to be faster because it uses LAPACK -- the question is how
much.  I have not done any optimization in GSL yet, so there is room
to improve things.  If you are interested in profiling the code you
can compile GSL for use with gprof, as described in the GCC manual.

regards
Brian Gough

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

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-19 13:20 gsl_multifit Kai Trukenmueller
2001-12-19 13:20 ` Brian Gough [this message]
2001-12-19 13:20   ` gsl_multifit Kai Trukenmueller
2001-12-19 13:20     ` gsl_multifit Brian Gough
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 gsl_multifit Mikael Adlers
2001-12-19 13:20 ` gsl_multifit Kai Trukenmueller
2001-12-19 13:20   ` gsl_multifit Brian Gough
2001-12-19 13:20     ` gsl_multifit Henry Sobotka
2001-12-19 13:20       ` gsl_multifit Brian Gough
2001-12-19 13:20         ` gsl_multifit Dirk Eddelbuettel
2001-12-19 13:20 gsl_multifit Mikael Adlers

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=15308.43367.776262.834557@debian \
    --to=bjg@network-theory.co.uk \
    --cc=gsl-discuss@sources.redhat.com \
    --cc=trukenm@ag2.mechanik.tu-darmstadt.de \
    /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).