complex_get_vector_element_magnitudes - Computes magnitudes of the elements of a complex vector


#include "x/x_vector.h"

Example compile flags (system dependent):
   -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 complex_get_vector_element_magnitudes
	Vector **out_mpp,
	const Vector *in_re_mp,
	const Vector *in_im_mp


This routine computes the magnitude of the elements of a complex vector represented as a pair of vectors. All non-null vectors must be the same size. If one of a pair of vectors is NULL, then it is treated as zero. If both vectors of a pair are NULL, then the result is two NULL vectors. The first argument is a pointer to target a vector. If it is null, then a vector of the appropriate size is created. If it is of the wrong size, it is resized. Finally, if they are the right size, then the storage is recycled, as is.


NO_ERROR on success, and ERROR on failure, with an error message being set.


This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.


Kobus Barnard


Kobus Barnard