NAME
divide_vectors - Performs element-wise division of two vectors.
SYNOPSIS
#include "m/m_vec_arith.h"
Example compile flags (system dependent):
-DLINUX_386 -DLINUX_386_P4
-I/home/kobus/include
-L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
-lKJB -llapack -lblas -lg2c -lXext -lX11
int divide_vectors
(
Vector **target_vpp,
const Vector *first_vp,
const Vector *second_vp
);
DESCRIPTION
This routine performs element-wise division of two vectors. The second
vector must fit into the first an integral number of times.The second
vector is added to each block in the first vector.
The first argument is the adress of the target vector. If the target vector
itself is null, then a vector of the appropriate size is created. If the
target vector is the wrong size, it is resized. Finally, if it is 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. This routine will fail if any of the matrix elements are too close
to zero, or if memory allocation fails. The routine will also fail due to
dimension mismatch, but this is currently treated as a bug (see
set_bug()).
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTOR
Kobus Barnard
SEE ALSO
multiply_vector_by_scalar
,
ow_multiply_vector_by_scalar
,
divide_vector_by_scalar
,
ow_divide_vector_by_scalar
,
add_scalar_to_vector
,
ow_add_scalar_to_vector
,
subtract_scalar_from_vector
,
ow_subtract_scalar_from_vector
,
add_vectors
,
subtract_vectors
,
multiply_vectors
,
ow_add_scalar_times_vector_to_vector
,
ow_add_vectors
,
ow_add_vector_times_scalar
,
ow_subtract_vectors
,
ow_subtract_vector_times_scalar
,
ow_multiply_vectors
,
ow_divide_vectors
,
invert_vector
,
ow_invert_vector
,
sqrt_vector
,
ow_sqrt_vector
,
log_vector
,
log_vector_2
,
ow_log_vector
,
ow_log_vector_2
,
exp_vector
,
ow_exp_vector
,
get_abs_of_vector
,
ow_get_abs_of_vector
,
average_vector_elements
,
average_vector_squared_elements
,
sum_vector_elements
,
sum_vector_squared_elements
,
multiply_vector_elements