Changeset 35274
- Timestamp:
- Jan 7, 2009, 11:27:36 AM (16 years ago)
- Location:
- grass/trunk
- Files:
-
- 1 deleted
- 17 edited
-
imagery/i.gensigset/invert.c (modified) (1 diff)
-
imagery/i.gensigset/subcluster.c (modified) (1 diff)
-
imagery/i.smap/bouman.h (modified) (1 diff)
-
imagery/i.smap/eigen.c (deleted)
-
imagery/i.smap/invert.c (modified) (1 diff)
-
imagery/i.smap/model.c (modified) (2 diffs)
-
include/gisdefs.h (modified) (5 diffs)
-
include/gmath.h (modified) (1 diff)
-
lib/gmath/eigen.c (modified) (1 diff)
-
lib/gmath/lu.c (modified) (1 diff)
-
lib/gmath/svd.c (modified) (1 diff)
-
lib/rst/interp_float/matrix.c (modified) (1 diff)
-
lib/rst/interp_float/ressegm2d.c (modified) (1 diff)
-
lib/rst/interp_float/segmen2d.c (modified) (1 diff)
-
raster/r.param.scale/process.c (modified) (1 diff)
-
raster/r.resamp.rst/main.c (modified) (1 diff)
-
vector/lidar/lidarlib/PolimiFunct.h (modified) (1 diff)
-
vector/v.surf.rst/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/imagery/i.gensigset/invert.c
r32526 r35274 1 1 #include <grass/gis.h> 2 #include <grass/gmath.h> 2 3 3 4 int invert( -
grass/trunk/imagery/i.gensigset/subcluster.c
r34870 r35274 4 4 #include <grass/imagery.h> 5 5 #include <grass/glocale.h> 6 #include <grass/gmath.h> 6 7 #include "local_proto.h" 7 8 -
grass/trunk/imagery/i.smap/bouman.h
r34872 r35274 54 54 double solve(double (*)(double), double, double, double, int *); 55 55 56 /* Subroutine in eigen.c */57 int eigen(double **, double *, int);58 59 56 /* Subroutine in invert.c */ 60 57 int invert(double **, int); -
grass/trunk/imagery/i.smap/invert.c
r34871 r35274 1 1 #include <math.h> 2 2 #include <grass/gis.h> 3 #include <grass/gmath.h> 3 4 4 5 int invert( -
grass/trunk/imagery/i.smap/model.c
r34871 r35274 2 2 #include <grass/glocale.h> 3 3 #include <grass/imagery.h> 4 #include <grass/gmath.h> 4 5 #include "bouman.h" 5 6 #include "region.h" … … 43 44 44 45 /* Test for positive definite matrix */ 45 eigen(SubS->Rinv, lambda, nbands);46 eigen(SubS->Rinv, NULL, lambda, nbands); 46 47 for (b1 = 0; b1 < nbands; b1++) { 47 48 if (lambda[b1] <= 0.0) -
grass/trunk/include/gisdefs.h
r34748 r35274 394 394 int G_counter_next(struct Counter *); 395 395 396 /* dalloc.c */397 double *G_alloc_vector(size_t);398 double **G_alloc_matrix(int, int);399 float *G_alloc_fvector(size_t);400 float **G_alloc_fmatrix(int, int);401 void G_free_vector(double *);402 void G_free_matrix(double **);403 void G_free_fvector(float *);404 void G_free_fmatrix(float **);405 406 396 /* date.c */ 407 397 const char *G_date(void); … … 430 420 /* done_msg.c */ 431 421 void G_done_msg(const char *, ...) __attribute__ ((format(printf, 1, 2))); 432 433 /* eigen_tools.c */434 int G_tqli(double[], double[], int, double **);435 void G_tred2(double **, int, double[], double[]);436 422 437 423 /* endian.c */ … … 652 638 const char *G__home(void); 653 639 654 /* ialloc.c */655 int *G_alloc_ivector(size_t);656 int **G_alloc_imatrix(int, int);657 void G_free_ivector(int *);658 void G_free_imatrix(int **);659 660 640 /* index.c */ 661 641 char *G_index(const char *, int); … … 740 720 void G_ls(const char *, FILE *); 741 721 void G_ls_format(char **, int, int, FILE *); 742 743 /* lu.c */744 int G_ludcmp(double **, int, int *, double *);745 void G_lubksb(double **, int, int *, double[]);746 722 747 723 /* mach_name.c */ … … 1098 1074 char *G_squeeze(char *); 1099 1075 1100 /* svd.c */1101 int G_svdcmp(double **, int, int, double *, double **);1102 int G_svbksb(double **, double[], double **, int, int, double[], double[]);1103 int G_svelim(double *, int);1104 1105 1076 /* system.c */ 1106 1077 int G_system(const char *); -
grass/trunk/include/gmath.h
r32526 r35274 69 69 int size3); 70 70 71 /* dalloc.c */ 72 double *G_alloc_vector(size_t); 73 double **G_alloc_matrix(int, int); 74 float *G_alloc_fvector(size_t); 75 float **G_alloc_fmatrix(int, int); 76 void G_free_vector(double *); 77 void G_free_matrix(double **); 78 void G_free_fvector(float *); 79 void G_free_fmatrix(float **); 80 81 /* eigen_tools.c */ 82 int G_tqli(double[], double[], int, double **); 83 void G_tred2(double **, int, double[], double[]); 84 85 /* ialloc.c */ 86 int *G_alloc_ivector(size_t); 87 int **G_alloc_imatrix(int, int); 88 void G_free_ivector(int *); 89 void G_free_imatrix(int **); 90 91 /* lu.c */ 92 int G_ludcmp(double **, int, int *, double *); 93 void G_lubksb(double **, int, int *, double[]); 94 95 /* svd.c */ 96 int G_svdcmp(double **, int, int, double *, double **); 97 int G_svbksb(double **, double[], double **, int, int, double[], double[]); 98 int G_svelim(double *, int); 99 71 100 #endif /* GMATH_H_ */ -
grass/trunk/lib/gmath/eigen.c
r32526 r35274 44 44 45 45 /* Returns eigenvectors */ 46 for (i = 0; i < n; i++) 47 for (j = 0; j < n; j++) 48 Vectors[i][j] = a[i][j]; 46 if (Vectors) 47 for (i = 0; i < n; i++) 48 for (j = 0; j < n; j++) 49 Vectors[i][j] = a[i][j]; 49 50 50 51 G_free_matrix(a); -
grass/trunk/lib/gmath/lu.c
r32526 r35274 1 1 #include <math.h> 2 2 #include <grass/gis.h> 3 #include <grass/gmath.h> 3 4 4 5 -
grass/trunk/lib/gmath/svd.c
r32526 r35274 1 #include <math.h> 1 2 #include <grass/gis.h> 2 #include < math.h>3 #include <grass/gmath.h> 3 4 4 5 static double at, bt, ct; -
grass/trunk/lib/rst/interp_float/matrix.c
r32526 r35274 26 26 #include <grass/gis.h> 27 27 #include <grass/interpf.h> 28 #include <grass/gmath.h> 28 29 29 30 int IL_matrix_create(struct interp_params *params, struct triple *points, /* points for interpolation */ -
grass/trunk/lib/rst/interp_float/ressegm2d.c
r32526 r35274 24 24 #include <grass/gis.h> 25 25 #include <grass/interpf.h> 26 #include <grass/gmath.h> 26 27 27 28 static int input_data(struct interp_params *, -
grass/trunk/lib/rst/interp_float/segmen2d.c
r32585 r35274 9 9 #include <grass/gis.h> 10 10 #include <grass/glocale.h> 11 12 11 #include <grass/interpf.h> 12 #include <grass/gmath.h> 13 13 14 14 static double smallest_segment(struct multtree *, int); -
grass/trunk/raster/r.param.scale/process.c
r32586 r35274 17 17 #include <grass/gis.h> 18 18 #include <grass/glocale.h> 19 #include <grass/gmath.h> 19 20 #include "param.h" 20 21 #include "nrutil.h" -
grass/trunk/raster/r.resamp.rst/main.c
r34460 r35274 43 43 #include <grass/interpf.h> 44 44 #include <grass/glocale.h> 45 #include <grass/gmath.h> 45 46 46 47 static double /* pargr */ ns_res, ew_res, inp_ew_res, inp_ns_res; -
grass/trunk/vector/lidar/lidarlib/PolimiFunct.h
r33769 r35274 21 21 #define _POLIMIFUNCT_H_ 22 22 23 #include <grass/config.h> 23 24 #include <grass/gis.h> 24 25 #include <grass/Vect.h> 25 26 #include <grass/dbmi.h> 26 27 #include <grass/glocale.h> 27 #include <grass/config.h> 28 28 #include <grass/gmath.h> 29 29 30 30 /*----------------------------------------------------------------------------------------------------------*/ -
grass/trunk/vector/v.surf.rst/main.c
r34654 r35274 45 45 #include "surf.h" 46 46 #include <grass/dataquad.h> 47 #include <grass/gmath.h> 47 48 48 49
Note:
See TracChangeset
for help on using the changeset viewer.
