NAME
multiply_spectra - Multiplies spectra elementwise
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 multiply_spectra
(
Spectra **output_sp_ptr,
const Spectra *sp1,
int sp2_index,
const Spectra *sp2
);
DESCRIPTION
This routine multiplies all the spectra pointed to by the parameter sp1 by
the spectra in sp2, specifed by sp2_index. The parameter sp2_index can be a simple
integer, in which case each spectra in sp1 is multiplied by the spectra in
sp2 with that sp2_index, producing a result of the same dimension as sp1.
Alternatively, if sp2_index is USE_ALL_SPECTRA, then each spectra in sp1 is
multiplied by each spectra in sp2, producing a result with the product of the
number of spectra in sp1 and sp2.
The result is put into (*output_sp_ptr), which is created or resized as
necessary.
RETURNS
NO_ERROR on success, and ERROR of failure, with an appropriate error
message being set.
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
,
copy_spectra
,
convert_spectra
,
check_spectra_are_comparable