GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
trncm.c
Go to the documentation of this file.
1
/* trncm.c CCMATH mathematics library source code.
2
*
3
* Copyright (C) 2000 Daniel A. Atkinson All rights reserved.
4
* This code may be redistributed under the terms of the GNU library
5
* public license (LGPL). ( See the lgpl.license file for details.)
6
* ------------------------------------------------------------------------
7
*/
8
#include "
ccmath.h
"
9
void
trncm
(
Cpx
* a,
int
n)
10
{
11
Cpx
s, *p, *q;
12
13
int
i, j, e;
14
15
for
(i = 0, e = n - 1; i < n - 1; ++i, --e, a += n + 1) {
16
for
(j = 0, p = a + 1, q = a + n; j < e; ++j) {
17
s = *p;
18
*p++ = *q;
19
*q = s;
20
q += n;
21
}
22
}
23
}
ccmath.h
trncm
void trncm(Cpx *a, int n)
Definition:
trncm.c:9
complex
Definition:
la.h:54
lib
external
ccmath
trncm.c
Generated on Mon May 31 2021 05:21:32 for GRASS GIS 7 Programmer's Manual by
1.8.13