![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Macros | |
| #define | ARR(T) |
| #define | CELLDEF(T, S) |
| #define | MATARR(T, S) |
| #define | MATDEF(T, S) |
| #define | SPMATDEF(T, S) |
| #define | reshape(in, nx_, ny_) |
| #define | types_anyarray(T, S) |
| #define | types_anycell(T, S) |
| #define | types_anydmat(T, S) |
| #define | types_anyloc(T, S) |
| #define | def_anyarray(T, S, C) |
| #define | def_anycell(T, S, C) |
| #define | def_anydmat(T, S, C) |
| #define | def_anyloc(T, S, C) |
| #define | index_1d(i, nx, ny) |
| #define | index_2d(ix, iy, nx, ny) |
| #define | index_col(iy, nx, ny) |
| #define | P0(A) |
| #define | P1(A, i) |
| #define | P2(A, ix, iy) |
| #define | P3(Ac, icx, ix, iy) |
| #define | P4(Ac, icx, icy, ix, iy) |
| #define | P_GET5(_0, _1, _2, _3, _4, _5, NAME, ...) |
| #define | P(...) |
| #define | PCOL(A, iy) |
| #define | P_GET3(_0, _1, _2, _3, NAME, ...) |
| #define | PR1(A, ix) |
| #define | PR2(A, ix, iy) |
| #define | PR(...) |
| #define | PCOLR(A, iy) |
| #define | PRR(A, ...) |
| #define | PN0(A) |
| #define | NX0(A) |
| #define | NY0(A) |
| #define | PN1(A, i) |
| #define | PN2(A, ix, iy) |
| #define | PN(...) |
| #define | NX1(A, i) |
| #define | NX2(A, ix, iy) |
| #define | NX(...) |
| #define | NY1(A, i) |
| #define | NY2(A, ix, iy) |
| #define | NY(...) |
| #define | NE0(A) |
| #define | NE1(A, i) |
| #define | NE2(A, ix, iy) |
| #define | NE(...) |
Enumerations | |
| enum | CEMBED { C_FULL , C_ABS2 , C_REAL , C_ABS , C_LITERAL } |
Functions | |
| union | __attribute__ ((__transparent_union__)) |
Defines the math data types like dmat, cmat, dcell, ccell, dsp, csp data types.
Don't use ulong for dimensions because subtracting a bigger ulong from a smaller ulong overflows.
Remember to update interface.py after updating the structs below.
| struct cell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct cell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct cell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct smat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| float *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct zmat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| fcomplex *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct dmat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| real *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct cmat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| comp *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct lmat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| long *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct imat |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| int *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| struct ssp |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type |
| float *__restrict | px |
numerical values, size nzmax |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
the keywords as a string |
| file_t * | fp |
The file, to be saved upon free |
| spint | nzmax |
maximum number of entries |
| spint *__restrict | pp |
col indices (size ny+1) |
| spint *__restrict | pi |
row indices (size nzmax) |
| unsigned int * | nref |
reference counting for px, pp, pi |
| struct zsp |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type |
| fcomplex *__restrict | px |
numerical values, size nzmax |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
the keywords as a string |
| file_t * | fp |
The file, to be saved upon free |
| spint | nzmax |
maximum number of entries |
| spint *__restrict | pp |
col indices (size ny+1) |
| spint *__restrict | pi |
row indices (size nzmax) |
| unsigned int * | nref |
reference counting for px, pp, pi |
| struct dsp |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type |
| real *__restrict | px |
numerical values, size nzmax |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
the keywords as a string |
| file_t * | fp |
The file, to be saved upon free |
| spint | nzmax |
maximum number of entries |
| spint *__restrict | pp |
col indices (size ny+1) |
| spint *__restrict | pi |
row indices (size nzmax) |
| unsigned int * | nref |
reference counting for px, pp, pi |
| struct csp |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type |
| comp *__restrict | px |
numerical values, size nzmax |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
the keywords as a string |
| file_t * | fp |
The file, to be saved upon free |
| spint | nzmax |
maximum number of entries |
| spint *__restrict | pp |
col indices (size ny+1) |
| spint *__restrict | pi |
row indices (size nzmax) |
| unsigned int * | nref |
reference counting for px, pp, pi |
| struct map_t |
OPD or Amplitude map defined on square/rectangular grids. with equal spacing on x/y. Can be casted to dmat.
| Data Fields | ||
|---|---|---|
| union map_t.__unnamed0__ | __unnamed__ | |
| real | ox |
Origin in x |
| real | oy |
Origin in y |
| real | dx |
Sampling along x |
| real | dy |
Sampling along y |
| real | ht |
Heigh conjugation of this surface |
| real | vx | |
| real | vy |
Wind velocity. Useful for atmospheric grid |
| real | iac |
Wind velocity. Useful for atmospheric grid Inter-actuator coupling. >0: use cubic influence function |
| real | dratio |
M1 to DM demagnification ratio (>1 for shrinking beam) |
| real | aoi |
Angle of incidence in radian for ray tracing input |
| struct rmap_t |
Map with different x/y sampling. Can be cased to dmat
| Data Fields | ||
|---|---|---|
| union rmap_t.__unnamed0__ | __unnamed__ | |
| real | ox |
Origin in x |
| real | oy |
Origin in y |
| real | dx |
Sampling along x (first dimension) |
| real | dy |
Sampling along y (second dimension) |
| real | txdeg |
the x tilt angle in degree wrt beam (90 is prep), |
| real | tydeg |
the y tilt angle in degree wrt beam (90 is prep), |
| real | ftel |
Effective focal length of the telescope |
| real | fexit |
The distance between the exit pupil and the focus |
| real | fsurf |
The distance between the tilted surface (M3) and the focus |
| struct locstatcol_t |
Store starting x,y for each col
| Data Fields | ||
|---|---|---|
| real | xstart |
starting x of this column |
| real | ystart |
starting y of this column |
| long | pos |
starting index of this column |
| struct locstat_t |
Stores array of locstatcol_t
| Data Fields | ||
|---|---|---|
| locstatcol_t * | cols |
Information about each column |
| real | dx |
Sampling of the grid along x |
| real | dy |
Sampling of the grid along y |
| real | xmin |
Minimum x |
| real | ymin |
Minimum y |
| long | ncol |
Number of consecutive columns found |
| long | nx | |
| long | ny |
Size for embedding |
| struct loc_t |
Struct for coordinates like plocs, xloc, aloc etc.
| Data Fields | ||
|---|---|---|
| union loc_t.__unnamed0__ | __unnamed__ | |
| real * | locy |
y coordinates of each point |
| locstat_t * | stat |
points to column statistics |
| map_t * | map |
point to the map used for identifying neihboring points. |
| real | dx |
Sampling along x |
| real | dy |
Sampling along y |
| real | ht |
Conjugation height of the loc grid. |
| real | iac |
Inter-actuator coupling. >0: use cubic influence function for ray tracing |
| real | dratio |
M1 to DM demagnification ratio (>1 for shrinking beam) |
| real | aoi |
Angle of incidence in radian for ray tracing input |
| int | npad | |
| struct pts_t |
low left point of each subaperture.
don't change the leading elements. so that pts_t can be used as loc_t.
| Data Fields | ||
|---|---|---|
| union pts_t.__unnamed0__ | __unnamed__ | |
| long | nxsa |
number of cols per subaperture |
| long | nysa |
number of rows per subaperture |
| real | dx |
sampling of points in each subaperture |
| real | dy |
sampling of points in each subaperture. dy=dx normally required. |
| struct ccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct cmat **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct cmat * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct zcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct zmat **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct zmat * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct dcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct dmat **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct dmat * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct scell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct smat **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct smat * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct lcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct lmat **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct lmat * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct dspcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct dsp **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct dsp * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct sspcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct ssp **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct ssp * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct cspcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct csp **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct csp * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct zspcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct zsp **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct zsp * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct cccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct ccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct ccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct zccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct zcell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct zcell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct dccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct dcell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct dcell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct sccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct scell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct scell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct lccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct lcell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct lcell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct ccccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct cccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct cccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct zcccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct zccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct zccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct dcccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct dccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct dccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct scccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct sccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct sccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct lcccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct lccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct lccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct mapcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct map_t **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct map_t * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct rmapcell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct rmap_t **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct rmap_t * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct loccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct loc_t **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct loc_t * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct mapccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct mapcell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct mapcell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct rmapccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct rmapcell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct rmapcell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| struct locccell |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| struct loccell **__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| struct loccell * | m | |
| void * | dummy1 | |
| void * | dummy2 | |
| void * | dummy3 | |
| union map_t.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| struct map_t.__unnamed0__.__unnamed0__ | __unnamed__ | |
| dmat | dmat[1] | |
| struct map_t.__unnamed0__.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| real *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| union rmap_t.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| struct rmap_t.__unnamed0__.__unnamed0__ | __unnamed__ | |
| dmat | dmat[1] | |
| struct rmap_t.__unnamed0__.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| M_ID | id |
to identify the array type. |
| real *__restrict | p |
The data pointer |
| long | nx |
number of rows |
| long | ny |
number of columns |
| char * | keywords |
The keywords as a string |
| file_t * | fp |
Opened file to be saved to |
| struct fft_t * | fft |
<For FFT plan |
| mem_t * | mem |
Memory management |
| async_t * | async |
async io |
| void(*)(cell *p) | deinit |
for derived type to free additional field |
| void(*)(cell *p) | make_keywords |
For derived type to update keywords |
| union loc_t.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| dmat | dmat[1] | |
| struct loc_t.__unnamed0__.__unnamed0__ | __unnamed__ | |
| struct loc_t.__unnamed0__.__unnamed0__ |
| union pts_t.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| loc_t | loc[1] | |
| struct pts_t.__unnamed0__.__unnamed0__ | __unnamed__ | |
| struct pts_t.__unnamed0__.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| union pts_t.__unnamed0__.__unnamed0__.__unnamed0__ | __unnamed__ | |
| real * | origy |
The y origin of each subaperture |
| locstat_t * | stat |
padding so that we can be casted to loc_t |
| map_t * | map | |
| union pts_t.__unnamed0__.__unnamed0__.__unnamed1__ | __unnamed__ | |
| real | dsay |
side length of subaperture. |
| real | dummy_ht |
Place holder |
| real | dummy_iac |
Place holder |
| real | dratio |
M1 to DM demagnification ratio (>1 for shrinking beam) |
| real | aoi |
Angle of incidence in radian for ray tracing input |
| int | npad |
padding when create map |
| union pts_t.__unnamed0__.__unnamed0__.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| dmat | dmat[1] | |
| struct pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__ | __unnamed__ | |
| struct pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__ |
| Data Fields | ||
|---|---|---|
| M_ID | id | |
| real * | origx |
The x origin of each subaperture. Contains memory for origy |
| long | nsa |
number of subapertures. |
| long | two |
Constant 2. to be binary compatble with rmat |
| char * | keywords |
The keywords as a string |
| union pts_t.__unnamed0__.__unnamed0__.__unnamed1__ |
| #define ARR | ( | T | ) |
For FFT plan
| #define MATDEF | ( | T, | |
| S ) |
| #define types_anydmat | ( | T, | |
| S ) |
| #define def_anyarray | ( | T, | |
| S, | |||
| C ) |
| #define def_anycell | ( | T, | |
| S, | |||
| C ) |
| #define def_anydmat | ( | T, | |
| S, | |||
| C ) |
| #define def_anyloc | ( | T, | |
| S, | |||
| C ) |
| #define index_1d | ( | i, | |
| nx, | |||
| ny ) |
| #define index_2d | ( | ix, | |
| iy, | |||
| nx, | |||
| ny ) |
| #define index_col | ( | iy, | |
| nx, | |||
| ny ) |
| #define P0 | ( | A | ) |
| #define P1 | ( | A, | |
| i ) |
| #define P2 | ( | A, | |
| ix, | |||
| iy ) |
| #define P3 | ( | Ac, | |
| icx, | |||
| ix, | |||
| iy ) |
| #define P4 | ( | Ac, | |
| icx, | |||
| icy, | |||
| ix, | |||
| iy ) |
| #define P_GET5 | ( | _0, | |
| _1, | |||
| _2, | |||
| _3, | |||
| _4, | |||
| _5, | |||
| NAME, | |||
| ... ) |
| #define P | ( | ... | ) |
| #define PCOL | ( | A, | |
| iy ) |
Used to obtain pointer to columns iy of array A
| #define P_GET3 | ( | _0, | |
| _1, | |||
| _2, | |||
| _3, | |||
| NAME, | |||
| ... ) |
| #define PR1 | ( | A, | |
| ix ) |
| #define PR2 | ( | A, | |
| ix, | |||
| iy ) |
| #define PR | ( | ... | ) |
Calls P() with wrapping of index
| #define PCOLR | ( | A, | |
| iy ) |
Calls PCOL(A, iy) with wrapping of index
| #define PN0 | ( | A | ) |
| #define NX0 | ( | A | ) |
| #define NY0 | ( | A | ) |
| #define PN1 | ( | A, | |
| i ) |
| #define PN2 | ( | A, | |
| ix, | |||
| iy ) |
| #define PN | ( | ... | ) |
Return number of elements
| #define NX1 | ( | A, | |
| i ) |
| #define NX2 | ( | A, | |
| ix, | |||
| iy ) |
| #define NX | ( | ... | ) |
Return number of rows (inner dimension)
| #define NY1 | ( | A, | |
| i ) |
| #define NY2 | ( | A, | |
| ix, | |||
| iy ) |
| #define NY | ( | ... | ) |
Return number of cols (outer dimension)
| #define NE0 | ( | A | ) |
| #define NE2 | ( | A, | |
| ix, | |||
| iy ) |
| #define NE | ( | ... | ) |