source: Sophya/trunk/SophyaLib/NTools/matxop.h@ 3853

Last change on this file since 3853 was 220, checked in by ansari, 26 years ago

Creation module DPC/NTools Reza 09/04/99

File size: 1.5 KB
RevLine 
[220]1/* Fonctions de manipulation de matrices et de vecteurs */
2/* Resolution de systemes lineaires */
3
4/* R. Ansari Juillet 1993 */
5/* Note: 07/94 Fonction GausPiv(Inversion Matrice) CMV */
6/* est utilisee pour R/DFitLinErr() */
7
8#ifndef MATXOP_H_SEEN
9#define MATXOP_H_SEEN
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/* Declaration des fonctions */
16
17/* Operation Vecteurs/ Matrices */
18int IVecxVec(int *v1, int *v2, int n);
19float RVecxVec(float *v1, float *v2, int n);
20double DVecxVec(double *v1, double *v2, int n);
21void IMatxVec(int *mx, int *vi, int *vo, int n);
22void RMatxVec(float *mx, float *vi, float *vo, int n);
23void DMatxVec(double *mx, double *vi, double *vo, int n);
24
25/* Resolution de systemes lineaires */
26float SolveRLinSyst(float *mx, float *b, float *x, int n);
27double SolveDLinSyst(double *mx, double *b, double *x, int n);
28
29
30/* Ajustement de Chi2 */
31
32/* Ajustement avec vecteurs de depart Reels */
33int InitRFitLin(int nstmx, int szv);
34void EndRFitLin(void);
35float **GetRFitVect(int nvar, int vsz);
36void FreeRFitVect(void);
37float RFitLin(int nd, int vsz, float *XVar);
38float RFitLinErr(int nd, int vsz, float *XVar, float *Err);
39
40/* Ajustement avec vecteurs de depart double */
41int InitDFitLin(int nstmx, int szv);
42void EndDFitLin(void);
43double **GetDFitVect(int nvar, int vsz);
44void FreeDFitVect(void);
45double DFitLin(int nd, int vsz, double *XVar);
46double DFitLinErr(int nd, int vsz, double *XVar, double *Err);
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif
53
54
55
56
57
Note: See TracBrowser for help on using the repository browser.