📄 matrix_tools.h
字号:
#ifndef MATRIX_TOOLS_H
#define MATRIX_TOOLS_H
/* Use these for sending to matrix multiplication routines */
#define AA 0 /* A * A */
#define ATA 1 /* AT * A Where: AT = transpose(A) */
#define AAT 2 /* A * AT */
#define ERROR1 1111
#define ERROR2 2222
#define ERROR3 3333
#define ERROR4 4444
#define ERROR5 5555
/* routine prototypes */
void create_cacode(char svcode[], int prn);
double **
dalloc2d(unsigned nrows, unsigned ncols);
double *
dalloc1d(unsigned size);
void
dfree1d(double * pd);
void
dfree2d(double **ppd);
void
dclear2d(double **A, unsigned nrows, unsigned ncols);
void
dmult2d(double **A, unsigned ar, unsigned ac, double **B,
unsigned br, unsigned bc, double **C, unsigned mode);
void
dadd1d(double *A, double *B, unsigned size, double *C);
void
dadd2d(double **A, double **B, unsigned nrow, unsigned ncol, double **C);
void
dcopy1d(double *source, double *destination, unsigned size);
void
dcopy2d(double **source, double **destination, unsigned nrow, unsigned ncol);
void
dscale1d(double *A, unsigned size, double scalar);
void
dclear1d(double *A, unsigned ncols);
void
iclear1d(int *A, unsigned ncols);
void
dmult2d1d(double **A, unsigned ar, unsigned ac, double *B, unsigned br,
double *C);
int
dinvert2d(double **A, unsigned n);
void
xyz2llh( double xyz[], double llh[] );
void
enu2xyz(double enu[], double orgxyz[], double xyz[]);
void
xyz2enu(double * xyz, double * orgxyz, double *enu);
double
randn( void );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -