GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-7413740dd8
smgen.c
Go to the documentation of this file.
1 /* smgen.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 void smgen(double *a, double *eval, double *evec, int n)
9 {
10  double *p, *q, *ps, *r, *s, *t, *v = evec + n * n;
11 
12  for (ps = a, p = evec; p < v; p += n) {
13  for (q = evec; q < v; q += n, ++ps) {
14  *ps = 0.;
15  for (r = eval, s = p, t = q; r < eval + n;)
16  *ps += *r++ * *s++ * *t++;
17  }
18  }
19 }
struct ps_state ps
double t
Definition: r_raster.c:39
double r
Definition: r_raster.c:39
void smgen(double *a, double *eval, double *evec, int n)
Definition: smgen.c:8