NAME

homogenize_vector - Normalizes the values in a vector and places them in a new vector.

SYNOPSIS

#include "g/g_homogeneous_point.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 homogenize_vector
(
	Vector **homogenized_vector_address,
	const Vector *vector_to_homogenize
);

PARAMETERS

Vector **homogenized_vector_address
The Vector pointer address to set with the homogenized values.
const Vector *vector_to_homogenize
The Vector whose values to homogenize.

DESCRIPTION

Takes a Vector pointer that contains the values to homogenize, and a Vector** that is used to allocate a new Vector of the same size. The homogenized values are placed inside the new Vector. If the Vector** points to an existing Vector, it will be completely overwritten, including its size if necessary. Returns ERROR or NO_ERROR as appropriate.

RETURNS

ERROR if the z-value = 0.0. ERROR if the call to get_target_vector fails. NO_ERROR otherwise.

RELATED

ow_homogenize_vector

DISCLAIMER

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

AUTHOR

Andrew Emmott (aemmott)

DOCUMENTER

Andrew Emmott (aemmott)

SEE ALSO

ow_homogenize_vector