Header cleanup, konvence

Former-commit-id: 8920ff072be831d081599e0237f4e6a39b3ec659
This commit is contained in:
Marek Nečada 2017-12-17 16:44:45 +00:00
parent ef8129d93c
commit 6ef1adb60f
3 changed files with 23 additions and 8 deletions

7
qpms/konvence Normal file
View File

@ -0,0 +1,7 @@
Konvence pro názvy alokačních, dealokačních aj. funkcí a "getrů"
NÁZEV_t: identifikátor typu
NÁZEV_free(NÁZEV_t)
NÁZEV_pfree(NÁZEV_t*)
NÁZEV_get_CO(const NÁZEV_t*, const ...): získej nějakou hodnotu (triviality lze přímo)

View File

@ -25,14 +25,6 @@ complex double qpms_trans_single_A_Taylor_ext(int m, int n, int mu, int nu, doub
complex double qpms_trans_single_B_Taylor_ext(int m, int n, int mu, int nu, double kdlj_r,
double kdlj_th, double kdlj_phi, int r_ge_d, int J);
// Electric wave N; NI
complex double qpms_vswf_single_el(int m, int n, sph_t kdlj,
qpms_bessel_t btyp, qpms_normalization_t norm);
// Magnetic wave M; NI
complex double qpms_vswf_single_mg(int m, int n, sph_t kdlj,
qpms_bessel_t btyp, qpms_normalization_t norm);
typedef struct qpms_trans_calculator {
int lMax;
size_t nelem;

16
qpms/vswf.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef QPMS_VSWF_H
#define QPMS_VSWF_H
#include "qpms_types.h"
// array of pi, tau auxillary function (see [1,(37)])
// TODO put this elsewhere (no need
typedef struct {
//qpms_normalization_t norm;
//qpms_l_t lMax;
qpms_y_t nelem;
double *pi, *tau;
} qpms_pitau_t;
void qpms_pitau_t_free(qpms_pitau_t);
void qpms_pitau_t_pfree(qpms_pitau_t*);
#endif // QPMS_VSWF_H