Suppose I want to solve an equation using Brent's method.
Following the example code, I declare:
const gsl_root_fsolver_type * T;
gsl_root_fsolver * s;
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 * ?
-gideon
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl