MsPASS C++ API  2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
dpss.h
1#ifndef __DPSS_H__
2#define __DPSS_H__
3#include <cmath>
4#include <string.h>
5namespace mspass::algorithms::deconvolution {
6
12class ERR {
13public:
15 ERR() {};
17 ERR(const char *msg);
19 void getmsg(char *errmsg);
21 const char *getmsg();
22
23protected:
25 char msg[30];
26};
27
29class LAPACK_ERROR : public ERR {
30public:
34 LAPACK_ERROR(const char *errmsg);
35};
36
45void compute_energy_concentrations(double *h, int n, double NW, double *lambda,
46 int nseq);
47
59void eig_iit(int n, double *D, double *E, int il, int iu, double *eig_val,
60 double *eig_vec, int vec_length);
61
63void normalize_vec(double *h, int n);
64
66void polarize_dpss(double *h, int n, int iseq);
67
72void dpss_calc(int n, double NW, int seql, int sequ, double *h);
73} // namespace mspass::algorithms::deconvolution
74#endif
Base error container used by DPSS/LAPACK helper routines.
Definition dpss.h:12
char msg[30]
Definition dpss.h:25
const char * getmsg()
Definition dpss.cc:204
Error raised for failures reported by LAPACK routines.
Definition dpss.h:29