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/



_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to