APBS
3.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
vmatrix.h
Go to the documentation of this file.
1
4
60
61
#ifndef _VMATRIX_H_
62
#define _VMATRIX_H_
63
64
#define MAT2(mat, dx, dy) \
65
int dx_##mat = dx; \
66
int dy_##mat = dy
67
68
#define RAT2(mat, x, y) \
69
&VAT2(mat, x, y)
70
71
#define VAT2(mat, x, y) \
72
mat[(y - 1) * dx_##mat + (x - 1)]
73
74
75
76
#define MAT3(mat, dx, dy, dz) \
77
int dx_##mat = dx; \
78
int dy_##mat = dy; \
79
int dz_##mat = dz
80
81
#define RAT3(mat, x, y, z) \
82
&VAT3(mat, x, y, z)
83
84
#define VAT3(mat, x, y, z) \
85
mat[(z - 1) * dy_##mat * dx_##mat + \
86
(y - 1) * dx_##mat + \
87
(x - 1)]
88
89
#endif
/* _VMATRIX_H_ */
src
generic
vmatrix.h
Generated on
for APBS by
1.17.0