NAME
split_vector - Splits a vector
SYNOPSIS
#include "m/m_vec_basic.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 split_vector
(
Vector **target_1_vpp,
Vector **target_2_vpp,
const Vector *source_vp,
const Int_vector *index_list_vp
);
DESCRIPTION
This routine splits the vector pointed to by source_vp to the vectors pointed
to by *target_1_vp and *target_2_vp. If either of *target_1_vp or *target_2_vp
is NULL, then it is created. If it is the wrong size, it is resized.
The vector pointed to by *target_1_vp contains elements from source_vp that are
indexed by the vector pointed to by index_list_vp and *target_2_vp points to
those elements that are not on the list.
RETURNS
On success, this routine NO_ERROR, and failure, it returns NULL, and sets
an error message. Currently this routine can fail if storage
allocation fails or if source_vp cannot be indexed by one or more entries
in the index list .
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Ranjini Swaminathan
DOCUMENTOR
Ranjini Swaminathan
SEE ALSO
split_v4
,
split_vector_vector
,
copy_v4
,
copy_v3
,
copy_indexed_vector
,
create_vector_copy
,
select_from_vector_vector
,
copy_vector_vector
,
copy_vector_segment
,
copy_vector
,
ow_copy_vector