John Gehman writes: > I think I worked out the problem -- the memcpy functions in siman.c > will only copy real data, like my `double rmsd`. For my gsl_vector * > values that I'm searching for/optimizing, it copies only the pointer, > and therefore the same value being pointed to are adjusted over and > over, and a real copy is never set aside as a "best".
Yes, that's right - the struct itself is copied, not anything that is pointed to. -- Brian Gough 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
