-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathmatrix.h
More file actions
45 lines (35 loc) · 1.17 KB
/
matrix.h
File metadata and controls
45 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* GNUPLOT - matrix.h */
/* NOTICE: Change of Copyright Status
*
* The author of this module, Carsten Grammes, has expressed in
* personal email that he has no more interest in this code, and
* doesn't claim any copyright. He has agreed to put this module
* into the public domain.
*
* Lars Hecking 15-02-1999
*/
/*
* Header file: public functions in matrix.c
*
*
* Previous copyright of this module: Carsten Grammes, 1993
* Experimental Physics, University of Saarbruecken, Germany
*/
#ifndef MATRIX_H
#define MATRIX_H
#include "syscfg.h"
/******* public functions ******/
double *vec(int n);
int *ivec(int n);
double **matr(int r, int c);
void free_matr(double **m);
double *redim_vec(double **v, int n);
void solve(double **a, int n, double **b, int m);
void Givens(double **C, double *d, double *x, int N, int n);
void Invert_RtR(double **R, double **I, int n);
/* Functions for use by THIN_PLATE_SPLINES_GRID method */
void lu_decomp(double **, int, int *, double *);
void lu_backsubst(double **, int n, int *, double *);
double enorm_vec(int n, const double *x);
double sumsq_vec(int n, const double *x);
#endif /* MATRIX_H */