[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] solver types and code correctness
From: |
Brian Gough |
Subject: |
Re: [Help-gsl] solver types and code correctness |
Date: |
Wed, 31 Oct 2007 10:04:03 +0000 |
User-agent: |
Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI) |
At Mon, 29 Oct 2007 10:22:50 -0400,
Gideon Simpson wrote:
> T = gsl_root_fsolver_brent;
> s = gsl_root_fsolver_alloc(T);
>
> But if I don't intend to switch solver types, is there any reason not
> to declare:
>
> s = gsl_root_fsolver_alloc(gsl_root_fsolver_brent);
>
> instead, and forgo the creation of the gsl_root_fsolver_type * ?
Hello,
T is only a pointer so there's essentially no difference between the
two in terms of executable code - it's just a question of style.
--
Brian Gough
(GSL Maintainer)
Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/