NAME

get_vector_vector_transpose - Computes the "transpose" of a Vector_vector

SYNOPSIS

#include "m/m_vec_basic.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 get_vector_vector_transpose
(
	Vector_vector **target_vvpp,
	const Vector_vector *source_vvp
);

DESCRIPTION

This routine computes the "transpose" of a the Vector_vector source_vvp, when thought of as a matrix. For example, (*target_vvpp)->elements[0] will have source_vvp->length elements, which will be source_vvp->elements[0]->elements[0] source_vvp->elements[1]->elements[0] ... source_vvp->elements[N]->elements[0] where N = source_vvp->length. Clearly, all the vectors of source_vvp must have the same length. If *target_vpp is NULL, it will be created; otherwise it will be resized or reused.

RETURNS

On error, this routine ERROR, with an error message being set. On success it returns NO_ERROR.

DISCLAIMER

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

AUTHOR

Ernesto Brau

DOCUMENTER

Ernesto Brau

SEE ALSO

split_v4 , split_vector_vector , split_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 , flatten_vector_vector , vector_vector_from_vector , vector_vector_from_matrix , is_element_in_vector , is_vector_vector_consistent