GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-835afb4352
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 
11 void 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 }
void cmattr(Cpx *a, Cpx *b, int m, int n)
Definition: cmattr.c:11
double b
Definition: r_raster.c:39
Definition: la.h:54