This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: vector, matrix copy


There is a dilemma here. GSL is designed to follow Std C-library
conventions, e.g.  memcpy (dest, src)  <==> gsl_vector_cpy (dest, src)

For readability it would be preferable to use _copy instead of _cpy,
However that would suggest swapping the arguments, e.g. copy(from,to)
as in the C++ STL or Unix cp, which breaks the C-style.

What used to be implemented was inconsistent -- the name _copy with
the arguments (dest, src). 

I am open to suggestions on this (gsl_vector_memcpy , ...?).

Steve ROBBINS writes:
 > 
 > 
 > On Tue, 29 Feb 2000, Thomas Walter wrote:
 > 
 > > Hello,
 > > there was recently a name change from 'gsl_vector_copy' to
 > > 'gsl_vector_cpy'.
 > 
 > Really?  Why wld flks wnt to mak it hrdr to rd th src cde?
 > 
 > -S
 > 
 > 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]