GRASS 8 Programmer's Manual
8.5.0(2026)-8d6ceba290
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
smgen
void smgen(double *a, double *eval, double *evec, int n)
Definition
smgen.c:8
ps
struct ps_state ps
Definition
psdriver/graph_set.c:26
external
ccmath
smgen.c
Generated on
for GRASS 8 Programmer's Manual by
1.18.0