NAME

complex_get_magnitude_matrix_ew - Computes magnitude of a complex matrix

SYNOPSIS

#include "x/x_matrix.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_magnitude_matrix_ew
(
	Matrix **out_mpp,
	const Matrix *in_re_mp,
	const Matrix *in_im_mp
);

DESCRIPTION

This routine computes the magnitude of a complex matrix represented as a pair of matrices. All non-null matrices must be the same size. If one of a pair of matrices are NULL, then it is treated as zero. If both matrices of a pair are NULL, then the result is two NULL matrices. The first argument is a pointer to target a matrix. If it is null, then a matrix 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

SEE ALSO

complex_multiply_matrices_ew , complex_divide_matrices_ew , complex_get_phase_matrix_ew , complex_multiply_matrices