GRASS GIS 8 Programmer's Manual 8.4.1(2025)-45ca3179ab
Loading...
Searching...
No Matches
cmattr.c
Go to the documentation of this file.
1/* cmattr.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
9#include "ccmath.h"
10
11void cmattr(Cpx *a, Cpx *b, int m, int n)
12{
13 Cpx *p;
14
15 int i, j;
16
17 for (i = 0; i < n; ++i, ++b)
18 for (j = 0, p = b; j < m; ++j, p += n)
19 *a++ = *p;
20}
struct complex Cpx
Definition ccmath.h:41
void cmattr(Cpx *a, Cpx *b, int m, int n)
Definition cmattr.c:11
double b