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 finds 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 float x[]
Input array (N elements)
<- float 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.1 2000/12/18


Main Index libtsp