GRASS Programmer's Manual
6.4.2(2012)
|
#include <math.h>
#include <grass/gis.h>
#include <grass/gmath.h>
Go to the source code of this file.
Defines | |
#define | PYTHAG(a, b) |
#define | MAX(a, b) |
#define | SIGN(a, b) ((b) >= 0.0 ? fabs(a) : -fabs(a)) |
#define | TOL 1e-8 |
Functions | |
int | G_svdcmp (double **a, int m, int n, double *w, double **v) |
int | G_svbksb (double **u, double w[], double **v, int m, int n, double b[], double x[]) |
int | G_svelim (double *w, int n) |
(maxarg1=(a),maxarg2=(b),(maxarg1) > (maxarg2) ?\ (maxarg1) : (maxarg2))
Definition at line 12 of file svd.c.
Referenced by G_svdcmp().
((at=fabs(a)) > (bt=fabs(b)) ? \ (ct=bt/at,at*sqrt(1.0+ct*ct)) : (bt ? (ct=at/bt,bt*sqrt(1.0+ct*ct)): 0.0))
Definition at line 7 of file svd.c.
Referenced by G_svdcmp().
Definition at line 14 of file svd.c.
Referenced by G_svdcmp().
#define TOL 1e-8 |
Definition at line 264 of file svd.c.
Referenced by G_svelim().
int G_svbksb | ( | double ** | u, |
double | w[], | ||
double ** | v, | ||
int | m, | ||
int | n, | ||
double | b[], | ||
double | x[] | ||
) |
Definition at line 237 of file svd.c.
References G_alloc_vector(), G_free_vector(), and gui_modules::psmap_dialogs::s.
int G_svdcmp | ( | double ** | a, |
int | m, | ||
int | n, | ||
double * | w, | ||
double ** | v | ||
) |
Definition at line 16 of file svd.c.
References g, G_alloc_vector(), G_free_vector(), gui_modules::psmap_dialogs::h, MAX, PYTHAG, gui_modules::psmap_dialogs::s, and SIGN.