NAME
get_random_vector - Gets a uniform random vector
SYNOPSIS
#include "m/m_vector.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 get_random_vector
(
Vector **target_vpp,
int length
);
DESCRIPTION
This routine gets a matrix of the specified length, and fills it with uniform
random values between 0.0 and 1.0. The routine kjb_rand() is used.
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 This routine will only fail if
storage allocation fails.
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
get_unity_vector
,
get_zero_vector
,
get_initialized_vector
,
get_target_vector
,
free_vector
,
get_random_vector_2
,
vp_get_indexed_vector
,
get_zero_indexed_vector
,
get_random_indexed_vector
,
get_target_indexed_vector
,
free_indexed_vector
,
ascend_sort_indexed_vector
,
descend_sort_indexed_vector
,
get_target_vector_vector
,
free_vector_vector
,
allocate_2D_vp_array
,
free_2D_vp_array_and_vectors
,
get_target_v3
,
free_v3
,
get_target_v4
,
free_v4