This is the mail archive of the
gsl-cvs@sources.redhat.com
mailing list for the GSL project.
gsl/siman ChangeLog gsl_siman.h siman.c siman_ ...
- To: gsl-cvs at sourceware dot cygnus dot com
- Subject: gsl/siman ChangeLog gsl_siman.h siman.c siman_ ...
- From: rosalia at sourceware dot cygnus dot com
- Date: 15 Dec 2000 14:31:15 -0000
CVSROOT: /cvs/gsl
Module name: gsl
Changes by: rosalia@sources.redhat.com 2000-12-15 06:31:15
Modified files:
siman : ChangeLog gsl_siman.h siman.c siman_test.c
siman_tsp.c test.c
Log message:
2000-12-15 Mark Galassi <rosalia@galassi.org>
* gsl_siman.h, siman.c, siman_test.c, siman_tsp.c, test.c: changed
the siman_solve API to allow for more general search spaces. The
problem was that we assumed that points in the search space were
data structures that were allocated in continguous memory, so they
could not be linked structures. I replaced the malloc(), memcpy()
and free() calls with copy_constructor(), copyfunc() and
copy_destructor() functions. The user passes these functions,
which means that siman_solve() now takes three more arguments of
type gsl_siman_copy_t, gsl_siman_copy_construct_t and
gsl_siman_destroy_t. If these arguments are NULL (and all three
of them have to be NULL together), the traditional memcpy()
approach is used.