vector, matrix copy
Thomas Walter
walter@pctc.chemie.uni-erlangen.de
Tue Feb 29 01:47:00 GMT 2000
Hello,
there was recently a name change from 'gsl_vector_copy' to
'gsl_vector_cpy'.
I think this should be done for 'gsl_matrix_copy' too, or do I
missunderstand something.
What about adding something like
if (dest == src)
{
/* Destination and source are the same, nothing to do */
return GSL_SUCCESS;
}
in the copy sources. The advantage is one can write for example
gsl_vector_cpy (w, v)
in algorithms which can be written to work in-place and it depends on
the calling function whether one gets the result in a new workspace or
overwrites the input.
Bye
Thomas
--
Warum hat eine Leiterbahn keine 90 Grad Winkel sondern 2 mal 45 Grad?
Weil die Elektronen sonst immer gegen die Wand laufen 8-)))
----------------------------------------------
Dipl. Phys. Thomas Walter
Inst. f. Physiklische Chemie II
Egerlandstr. 3 Tel.: ++9131-85 27326 / 27330
91058 Erlangen, Germany email: walter@pctc.chemie.uni-erlangen.de
More information about the Gsl-discuss
mailing list