MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
type.h File Reference

Data Structures

struct  cell
struct  smat
struct  zmat
struct  dmat
struct  cmat
struct  lmat
struct  imat
struct  ssp
struct  zsp
struct  dsp
struct  csp
struct  map_t
struct  rmap_t
struct  locstatcol_t
struct  locstat_t
struct  loc_t
struct  pts_t
struct  ccell
struct  zcell
struct  dcell
struct  scell
struct  lcell
struct  dspcell
struct  sspcell
struct  cspcell
struct  zspcell
struct  cccell
struct  zccell
struct  dccell
struct  sccell
struct  lccell
struct  ccccell
struct  zcccell
struct  dcccell
struct  scccell
struct  lcccell
struct  mapcell
struct  rmapcell
struct  loccell
struct  mapccell
struct  rmapccell
struct  locccell
union  map_t.__unnamed0__
struct  map_t.__unnamed0__.__unnamed0__
union  rmap_t.__unnamed0__
struct  rmap_t.__unnamed0__.__unnamed0__
union  loc_t.__unnamed0__
struct  loc_t.__unnamed0__.__unnamed0__
union  pts_t.__unnamed0__
struct  pts_t.__unnamed0__.__unnamed0__
union  pts_t.__unnamed0__.__unnamed0__.__unnamed0__
struct  pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__
union  pts_t.__unnamed0__.__unnamed0__.__unnamed1__

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__))

Detailed Description

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.


Data Structure Documentation

◆ cell

struct cell
Collaboration diagram for 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

◆ smat

struct smat
Collaboration diagram for 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

◆ zmat

struct zmat
Collaboration diagram for 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

◆ dmat

struct dmat
Collaboration diagram for 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

◆ cmat

struct cmat
Collaboration diagram for 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

◆ lmat

struct lmat
Collaboration diagram for 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

◆ imat

struct imat
Collaboration diagram for 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

◆ ssp

struct ssp
Collaboration diagram for 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

◆ zsp

struct zsp
Collaboration diagram for 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

◆ dsp

struct dsp
Collaboration diagram for 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

◆ csp

struct csp
Collaboration diagram for 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

◆ map_t

struct map_t

OPD or Amplitude map defined on square/rectangular grids. with equal spacing on x/y. Can be casted to dmat.

Collaboration diagram for map_t:
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

◆ rmap_t

struct rmap_t

Map with different x/y sampling. Can be cased to dmat

Collaboration diagram for rmap_t:
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

◆ locstatcol_t

struct locstatcol_t

Store starting x,y for each col

Collaboration diagram for locstatcol_t:
Data Fields
real xstart

starting x of this column

real ystart

starting y of this column

long pos

starting index of this column

◆ locstat_t

struct locstat_t

Stores array of locstatcol_t

Collaboration diagram for locstat_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

◆ loc_t

struct loc_t

Struct for coordinates like plocs, xloc, aloc etc.

Collaboration diagram for loc_t:
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

◆ pts_t

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.

Collaboration diagram for pts_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.

◆ ccell

struct ccell
Collaboration diagram for 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

◆ zcell

struct zcell
Collaboration diagram for 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

◆ dcell

struct dcell
Collaboration diagram for 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

◆ scell

struct scell
Collaboration diagram for 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

◆ lcell

struct lcell
Collaboration diagram for 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

◆ dspcell

struct dspcell
Collaboration diagram for 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

◆ sspcell

struct sspcell
Collaboration diagram for 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

◆ cspcell

struct cspcell
Collaboration diagram for 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

◆ zspcell

struct zspcell
Collaboration diagram for 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

◆ cccell

struct cccell
Collaboration diagram for 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

◆ zccell

struct zccell
Collaboration diagram for 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

◆ dccell

struct dccell
Collaboration diagram for 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

◆ sccell

struct sccell
Collaboration diagram for 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

◆ lccell

struct lccell
Collaboration diagram for 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

◆ ccccell

struct ccccell
Collaboration diagram for 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

◆ zcccell

struct zcccell
Collaboration diagram for 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

◆ dcccell

struct dcccell
Collaboration diagram for 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

◆ scccell

struct scccell
Collaboration diagram for 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

◆ lcccell

struct lcccell
Collaboration diagram for 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

◆ mapcell

struct mapcell
Collaboration diagram for 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

◆ rmapcell

struct rmapcell
Collaboration diagram for 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

◆ loccell

struct loccell
Collaboration diagram for 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

◆ mapccell

struct mapccell
Collaboration diagram for 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

◆ rmapccell

struct rmapccell
Collaboration diagram for 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

◆ locccell

struct locccell
Collaboration diagram for 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

◆ map_t.__unnamed0__

union map_t.__unnamed0__
Collaboration diagram for map_t.__unnamed0__:
Data Fields
struct map_t.__unnamed0__.__unnamed0__ __unnamed__
dmat dmat[1]

◆ map_t.__unnamed0__.__unnamed0__

struct map_t.__unnamed0__.__unnamed0__
Collaboration diagram for 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

◆ rmap_t.__unnamed0__

union rmap_t.__unnamed0__
Collaboration diagram for rmap_t.__unnamed0__:
Data Fields
struct rmap_t.__unnamed0__.__unnamed0__ __unnamed__
dmat dmat[1]

◆ rmap_t.__unnamed0__.__unnamed0__

struct rmap_t.__unnamed0__.__unnamed0__
Collaboration diagram for 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

◆ loc_t.__unnamed0__

union loc_t.__unnamed0__
Collaboration diagram for loc_t.__unnamed0__:
Data Fields
dmat dmat[1]
struct loc_t.__unnamed0__.__unnamed0__ __unnamed__

◆ loc_t.__unnamed0__.__unnamed0__

struct loc_t.__unnamed0__.__unnamed0__
Collaboration diagram for loc_t.__unnamed0__.__unnamed0__:
Data Fields
M_ID id
real * locx

x coordinates of each point [allocates memory for both locx and locy]

long nloc

number of points

long two

Constant 2. to be binary compatble with rmat

char * keywords

The keywords as a string

◆ pts_t.__unnamed0__

union pts_t.__unnamed0__
Collaboration diagram for pts_t.__unnamed0__:
Data Fields
loc_t loc[1]
struct pts_t.__unnamed0__.__unnamed0__ __unnamed__

◆ pts_t.__unnamed0__.__unnamed0__

struct pts_t.__unnamed0__.__unnamed0__
Collaboration diagram for 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

treat pts_t as loc_t and compute the 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

◆ pts_t.__unnamed0__.__unnamed0__.__unnamed0__

union pts_t.__unnamed0__.__unnamed0__.__unnamed0__
Collaboration diagram for pts_t.__unnamed0__.__unnamed0__.__unnamed0__:
Data Fields
dmat dmat[1]
struct pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__ __unnamed__

◆ pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__

struct pts_t.__unnamed0__.__unnamed0__.__unnamed0__.__unnamed0__
Collaboration diagram for 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

◆ pts_t.__unnamed0__.__unnamed0__.__unnamed1__

union pts_t.__unnamed0__.__unnamed0__.__unnamed1__
Collaboration diagram for pts_t.__unnamed0__.__unnamed0__.__unnamed1__:
Data Fields
real dsa

side length of subaperture

real dsax

side length of subaperture

Macro Definition Documentation

◆ ARR

#define ARR ( T)

For FFT plan

◆ MATDEF

#define MATDEF ( T,
S )
Value:
typedef MATARR(T,S) S

◆ types_anydmat

#define types_anydmat ( T,
S )
Value:
T dmat S dm;\
T map_t S map;\
T rmap_t S rmap;\
T loc_t S loc;\
T pts_t S pts
Definition type.h:94
Definition type.h:131
Definition type.h:110
Definition type.h:173
Definition type.h:201

◆ types_anyloc

#define types_anyloc ( T,
S )
Value:
T loc_t S loc;\
T pts_t S pts

◆ def_anyarray

#define def_anyarray ( T,
S,
C )
Value:
typedef union __attribute__((__transparent_union__)){\
types_anyarray(T,S);\
}C

◆ def_anycell

#define def_anycell ( T,
S,
C )
Value:
typedef union __attribute__((__transparent_union__)){\
types_anycell(T,S);\
}C

◆ def_anydmat

#define def_anydmat ( T,
S,
C )
Value:
typedef union __attribute__((__transparent_union__)){\
types_anydmat(T,S);\
}C

◆ def_anyloc

#define def_anyloc ( T,
S,
C )
Value:
typedef union __attribute__((__transparent_union__)){\
types_anyloc(T,S);\
}C

◆ index_1d

#define index_1d ( i,
nx,
ny )
Value:
(i)

◆ index_2d

#define index_2d ( ix,
iy,
nx,
ny )
Value:
((ix)+(iy)*(nx))

◆ index_col

#define index_col ( iy,
nx,
ny )
Value:
((iy)*(nx))

◆ P0

#define P0 ( A)
Value:
(A)->p

◆ P1

#define P1 ( A,
i )
Value:
(A)->p[index_1d((i), (A)->nx, (A)->ny)]

◆ P2

#define P2 ( A,
ix,
iy )
Value:
(A)->p[index_2d((ix), (iy), (A)->nx, (A)->ny)]

◆ P3

#define P3 ( Ac,
icx,
ix,
iy )
Value:
P2(P1(Ac,icx),ix,iy)

◆ P4

#define P4 ( Ac,
icx,
icy,
ix,
iy )
Value:
P2(P2(Ac,icx,icy),ix,iy)

◆ P_GET5

#define P_GET5 ( _0,
_1,
_2,
_3,
_4,
_5,
NAME,
... )
Value:
NAME

◆ P

#define P ( ...)
Value:
P_GET5(_0,__VA_ARGS__,P4,P3,P2,P1,P0)(__VA_ARGS__)

Used to obtain elements of an array P(A,i) or P(A,i,j). Returns pointer if no index is given P(A).

◆ PCOL

#define PCOL ( A,
iy )
Value:
((A)->p+index_col((iy), (A)->nx, (A)->ny))

Used to obtain pointer to columns iy of array A

◆ P_GET3

#define P_GET3 ( _0,
_1,
_2,
_3,
NAME,
... )
Value:
NAME

◆ PR1

#define PR1 ( A,
ix )
Value:
P1((A), (((A)->nx==1 && (A)->ny==1)?0:ix))

◆ PR2

#define PR2 ( A,
ix,
iy )
Value:
P2((A), ((A)->nx==1?0:ix), ((A)->ny==1?0:iy))

◆ PR

#define PR ( ...)
Value:
P_GET3(_0,__VA_ARGS__,PR2,PR1,P0)(__VA_ARGS__)

Calls P() with wrapping of index

◆ PCOLR

#define PCOLR ( A,
iy )
Value:
PCOL((A),((A)->ny==1?0:iy))
#define PCOL(A, iy)
Definition type.h:538

Calls PCOL(A, iy) with wrapping of index

◆ PRR

#define PRR ( A,
... )
Value:
((A)?(PR(A,__VA_ARGS__)):0)
#define PR(...)
Definition type.h:544

◆ PN0

#define PN0 ( A)
Value:
((A)?((A)->nx*(A)->ny):0)

◆ NX0

#define NX0 ( A)
Value:
((A)?(A)->nx:0L)

◆ NY0

#define NY0 ( A)
Value:
((A)?(A)->ny:0L)

◆ PN1

#define PN1 ( A,
i )
Value:
PN0(P1(A,i))

◆ PN2

#define PN2 ( A,
ix,
iy )
Value:
PN0(P2(A,ix,iy))

◆ PN

#define PN ( ...)
Value:
P_GET3(_0,__VA_ARGS__,PN2,PN1,PN0)(__VA_ARGS__)

Return number of elements

◆ NX1

#define NX1 ( A,
i )
Value:
NX0(P1(A,i))

◆ NX2

#define NX2 ( A,
ix,
iy )
Value:
NX0(P2(A,ix,iy))

◆ NX

#define NX ( ...)
Value:
P_GET3(_0,__VA_ARGS__,NX2,NX1,NX0)(__VA_ARGS__)

Return number of rows (inner dimension)

◆ NY1

#define NY1 ( A,
i )
Value:
NY0(P1(A,i))

◆ NY2

#define NY2 ( A,
ix,
iy )
Value:
NY0(P2(A,ix,iy))

◆ NY

#define NY ( ...)
Value:
P_GET3(_0,__VA_ARGS__,NY2,NY1,NY0)(__VA_ARGS__)

Return number of cols (outer dimension)

◆ NE0

#define NE0 ( A)
Value:
((A) && (A)->nx && (A)->ny)

◆ NE1

#define NE1 ( A,
i )
Value:
((A) && NE0(P(A,i)))
#define P(...)
Definition type.h:537

◆ NE2

#define NE2 ( A,
ix,
iy )
Value:
((A) && NE0(P(A,ix,iy)))

◆ NE

#define NE ( ...)
Value:
P_GET3(_0,__VA_ARGS__,NE2,NE1,NE0)(__VA_ARGS__)