VRdSymPart
Routine
-
void VRdSymPart (int Sym, const double x[], double y[], int N)
Purpose
-
Find the symmetric or anti-symmetric part of a vector
Description
This routine creates an output vector which is the symmetric or
anti-symmetric part of the input vector,
y[i] = 0.5 (x[i] +/- x[N-i-1]), 0 <= i < N.
Parameters
-
-> int Sym
-
Symmetry flag, +1 or symmetric and -1 for anti-symmetric
-
-> const double x[]
-
Input array (N elements)
-
<- double y[]
-
Output array (N elements). The output array can be the same as the
input array.
-
-> int N
-
Number of elements in the arrays (may be zero).
Author / revision
P. Kabal
/ Revision 1.3 2003/05/09
Main Index libtsp