NAME

complex_get_vector_element_magnitudes - Computes magnitudes of the elements of a complex vector

SYNOPSIS

#include "x/x_vector.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 complex_get_vector_element_magnitudes
(
	Vector **out_mpp,
	const Vector *in_re_mp,
	const Vector *in_im_mp
);

DESCRIPTION

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.

RETURNS

NO_ERROR on success, and ERROR on failure, with an 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