Next: , Previous: Histogram allocation, Up: Histograms


22.3 Copying Histograms

— Function: int gsl_histogram_memcpy (gsl_histogram * dest, const gsl_histogram * src)

This function copies the histogram src into the pre-existing histogram dest, making dest into an exact copy of src. The two histograms must be of the same size.

— Function: gsl_histogram * gsl_histogram_clone (const gsl_histogram * src)

This function returns a pointer to a newly created histogram which is an exact copy of the histogram src.