help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] passing vectors to minimization functions


From: David Doria
Subject: [Help-gsl] passing vectors to minimization functions
Date: Mon, 12 May 2008 13:13:17 -0400

generally the "f" for minimization needs to be in the form f(double x,
PARAMS)

where PARAMS is a list of parameters, but I would like to pass a
vector<double> or vector<MyClass> to this function.  I've been doing it by
making my vector's global - but this seems like a terrible idea.  Any
suggestions on how to do this?


-- 
Thanks,

David


reply via email to

[Prev in Thread] Current Thread [Next in Thread]