NAME
copy_spectra - Copies spectra
SYNOPSIS
#include "s/s_spectra.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int copy_spectra
(
Spectra **target_sp_ptr,
const Spectra *sp
);
DESCRIPTION
This routine copies the spectra pointed to by "sp" to that pointed to by
"*target_sp_ptr", If *target_sp_ptr is NULL, then the target spectra is
created. If it already exists, but is the wrong size, then it is resized.
Finally, if it is the correct size, it is over-written.
RETURNS
On success, NO_ERROR is returned. On failure, ERROR is returned, with an
error message being set.
RELATED
Spectra
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
create_spectra
,
free_spectra
,
get_target_spectra
,
convert_spectra
,
multiply_spectra
,
check_spectra_are_comparable