mapping.h | mapping.h | |||
---|---|---|---|---|
skipping to change at line 385 | skipping to change at line 385 | |||
#define AST__LINEAR (5) /* Simple linear interpolation */ | #define AST__LINEAR (5) /* Simple linear interpolation */ | |||
#define AST__SINC (6) /* sinc(pi*x) interpolation */ | #define AST__SINC (6) /* sinc(pi*x) interpolation */ | |||
#define AST__SINCSINC (7) /* sinc(pi*x)*sinc(k*pi*x) interpolation * / | #define AST__SINCSINC (7) /* sinc(pi*x)*sinc(k*pi*x) interpolation * / | |||
#define AST__SINCCOS (8) /* sinc(pi*x)*cos(k*pi*x) interpolation */ | #define AST__SINCCOS (8) /* sinc(pi*x)*cos(k*pi*x) interpolation */ | |||
#define AST__SINCGAUSS (9) /* sinc(pi*x)*exp(-k*x*x) interpolation */ | #define AST__SINCGAUSS (9) /* sinc(pi*x)*exp(-k*x*x) interpolation */ | |||
#define AST__BLOCKAVE (10) /* Block averaging interpolation */ | #define AST__BLOCKAVE (10) /* Block averaging interpolation */ | |||
#define AST__GAUSS (11) /* exp(-k*x*x) spreading */ | #define AST__GAUSS (11) /* exp(-k*x*x) spreading */ | |||
#define AST__SOMB (12) /* somp(pi*x) interpolation */ | #define AST__SOMB (12) /* somp(pi*x) interpolation */ | |||
#define AST__SOMBCOS (13) /* somp(pi*x)*cos(k*pi*x) interpolation */ | #define AST__SOMBCOS (13) /* somp(pi*x)*cos(k*pi*x) interpolation */ | |||
/* 64 bit types */ | ||||
#if HAVE_INT64_T && HAVE_UINT64_T | ||||
#include <stdint.h> | ||||
typedef int64_t INT_BIG; | ||||
typedef uint64_t UINT_BIG; | ||||
#elif SIZEOF_LONG == 8 | ||||
typedef long int INT_BIG; | ||||
typedef unsigned long int UINT_BIG; | ||||
#elif SIZEOF_LONG_LONG == 8 | ||||
typedef long long int INT_BIG; | ||||
typedef unsigned long long int UINT_BIG; | ||||
#else | ||||
#define INT_BIG "no int64_t type available" | ||||
#define UINT_BIG "no uint64_t type available" | ||||
#endif | ||||
/* Type Definitions. */ | /* Type Definitions. */ | |||
/* ================= */ | /* ================= */ | |||
/* Mapping structure. */ | /* Mapping structure. */ | |||
/* ------------------ */ | /* ------------------ */ | |||
/* This structure contains all information that is unique to each | /* This structure contains all information that is unique to each | |||
object in the class (e.g. its instance variables). */ | object in the class (e.g. its instance variables). */ | |||
typedef struct AstMapping { | typedef struct AstMapping { | |||
/* Attributes inherited from the parent class. */ | /* Attributes inherited from the parent class. */ | |||
AstObject object; /* Parent class structure */ | AstObject object; /* Parent class structure */ | |||
skipping to change at line 420 | skipping to change at line 439 | |||
#if defined(astCLASS) /* Protected */ | #if defined(astCLASS) /* Protected */ | |||
typedef struct AstMappingVtab { | typedef struct AstMappingVtab { | |||
/* Properties (e.g. methods) inherited from the parent class. */ | /* Properties (e.g. methods) inherited from the parent class. */ | |||
AstObjectVtab object_vtab; /* Parent class virtual function table */ | AstObjectVtab object_vtab; /* Parent class virtual function table */ | |||
/* A Unique identifier to determine class membership. */ | /* A Unique identifier to determine class membership. */ | |||
AstClassIdentifier id; | AstClassIdentifier id; | |||
/* Properties (e.g. methods) specific to this class. */ | /* Properties (e.g. methods) specific to this class. */ | |||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | ||||
int (* ResampleLD)( AstMapping *, int, const int [], const int [], const | ||||
long double [], const long double [], int, void (*)(void), const double [] | ||||
, int, double, int, long double, int, const int [], const int [], const int | ||||
[], const int [], long double [], long double [], int * ); | ||||
void (* RebinLD)( AstMapping *, double, int, const int [], const int [], | ||||
const long double [], const long double [], int, const double [], int, dou | ||||
ble, int, long double, int, const int [], const int [], const int [], const | ||||
int [], long double [], long double [], int * ); | ||||
void (* RebinSeqLD)( AstMapping *, double, int, const int [], const int | ||||
[], const long double [], const long double [], int, const double [], int, | ||||
double, int, long double, int, const int [], const int [], const int [], co | ||||
nst int [], long double [], long double [], double [], int *, int * ); | ||||
#endif | ||||
AstMapping *(* RemoveRegions)( AstMapping *, int * ); | AstMapping *(* RemoveRegions)( AstMapping *, int * ); | |||
AstMapping *(* Simplify)( AstMapping *, int * ); | AstMapping *(* Simplify)( AstMapping *, int * ); | |||
AstPointSet *(* Transform)( AstMapping *, AstPointSet *, int, AstPointSe t *, int * ); | AstPointSet *(* Transform)( AstMapping *, AstPointSet *, int, AstPointSe t *, int * ); | |||
double (* Rate)( AstMapping *, double *, int, int, int * ); | double (* Rate)( AstMapping *, double *, int, int, int * ); | |||
int (* GetInvert)( AstMapping *, int * ); | int (* GetInvert)( AstMapping *, int * ); | |||
int (* GetIsSimple)( AstMapping *, int * ); | int (* GetIsSimple)( AstMapping *, int * ); | |||
int (* GetNin)( AstMapping *, int * ); | int (* GetNin)( AstMapping *, int * ); | |||
int (* GetNout)( AstMapping *, int * ); | int (* GetNout)( AstMapping *, int * ); | |||
int (* GetReport)( AstMapping *, int * ); | int (* GetReport)( AstMapping *, int * ); | |||
int (* GetTranForward)( AstMapping *, int * ); | int (* GetTranForward)( AstMapping *, int * ); | |||
int (* GetTranInverse)( AstMapping *, int * ); | int (* GetTranInverse)( AstMapping *, int * ); | |||
int (* GetIsLinear)( AstMapping *, int * ); | int (* GetIsLinear)( AstMapping *, int * ); | |||
int (* LinearApprox)( AstMapping *, const double *, const double *, doub le, double *, int * ); | int (* LinearApprox)( AstMapping *, const double *, const double *, doub le, double *, int * ); | |||
int (* MapMerge)( AstMapping *, int, int, int *, AstMapping ***, int **, int * ); | int (* MapMerge)( AstMapping *, int, int, int *, AstMapping ***, int **, int * ); | |||
int (* QuadApprox)( AstMapping *, const double[2], const double[2], int, int, double *, double *, int * ); | int (* QuadApprox)( AstMapping *, const double[2], const double[2], int, int, double *, double *, int * ); | |||
void (* RebinD)( AstMapping *, double, int, const int [], const int [], | ||||
const double [], const double [], int, const double [], int, double, int, d | ||||
ouble, int, const int [], const int [], const int [], const int [], double | ||||
[], double [], int * ); | ||||
void (* RebinF)( AstMapping *, double, int, const int [], const int [], | ||||
const float [], const float [], int, const double [], int, double, int, flo | ||||
at, int, const int [], const int [], const int [], const int [], float [], | ||||
float [], int * ); | ||||
void (* RebinI)( AstMapping *, double, int, const int [], const int [], | ||||
const int [], const int [], int, const double [], int, double, int, int, in | ||||
t, const int [], const int [], const int [], const int [], int [], int [], | ||||
int * ); | ||||
void (* RebinSeqD)( AstMapping *, double, int, const int [], const int [ | ||||
], const double [], const double [], int, const double [], int, double, int | ||||
, double, int, const int [], const int [], const int [], const int [], doub | ||||
le [], double [], double [], int *, int * ); | ||||
void (* RebinSeqF)( AstMapping *, double, int, const int [], const int [ | ||||
], const float [], const float [], int, const double [], int, double, int, | ||||
float, int, const int [], const int [], const int [], const int [], float [ | ||||
], float [], double [], int *, int * ); | ||||
void (* RebinSeqI)( AstMapping *, double, int, const int [], const int [ | ||||
], const int [], const int [], int, const double [], int, double, int, int, | ||||
int, const int [], const int [], const int [], const int [], int [], int [ | ||||
], double [], int *, int * ); | ||||
int (* ResampleB)( AstMapping *, int, const int [], const int [], const | ||||
signed char [], const signed char [], int, void (*)(void), const double [], | ||||
int, double, int, signed char, int, const int [], const int [], const int | ||||
[], const int [], signed char [], signed char [], int * ); | ||||
int (* ResampleD)( AstMapping *, int, const int [], const int [], const | ||||
double [], const double [], int, void (*)(void), const double [], int, doub | ||||
le, int, double, int, const int [], const int [], const int [], const int [ | ||||
], double [], double [], int * ); | ||||
int (* ResampleF)( AstMapping *, int, const int [], const int [], const | ||||
float [], const float [], int, void (*)(void), const double [], int, double | ||||
, int, float, int, const int [], const int [], const int [], const int [], | ||||
float [], float [], int * ); | ||||
int (* ResampleI)( AstMapping *, int, const int [], const int [], const | ||||
int [], const int [], int, void (*)(void), const double [], int, double, in | ||||
t, int, int, const int [], const int [], const int [], const int [], int [] | ||||
, int [], int * ); | ||||
int (* ResampleL)( AstMapping *, int, const int [], const int [], const | ||||
long int [], const long int [], int, void (*)(void), const double [], int, | ||||
double, int, long int, int, const int [], const int [], const int [], const | ||||
int [], long int [], long int [], int * ); | ||||
int (* ResampleS)( AstMapping *, int, const int [], const int [], const | ||||
short int [], const short int [], int, void (*)(void), const double [], int | ||||
, double, int, short int, int, const int [], const int [], const int [], co | ||||
nst int [], short int [], short int [], int * ); | ||||
int (* ResampleUB)( AstMapping *, int, const int [], const int [], const | ||||
unsigned char [], const unsigned char [], int, void (*)(void), const doubl | ||||
e [], int, double, int, unsigned char, int, const int [], const int [], con | ||||
st int [], const int [], unsigned char [], unsigned char [], int * ); | ||||
int (* ResampleUI)( AstMapping *, int, const int [], const int [], const | ||||
unsigned int [], const unsigned int [], int, void (*)(void), const double | ||||
[], int, double, int, unsigned int, int, const int [], const int [], const | ||||
int [], const int [], unsigned int [], unsigned int [], int * ); | ||||
int (* ResampleUL)( AstMapping *, int, const int [], const int [], const | ||||
unsigned long int [], const unsigned long int [], int, void (*)(void), con | ||||
st double [], int, double, int, unsigned long int, int, const int [], const | ||||
int [], const int [], const int [], unsigned long int [], unsigned long in | ||||
t [], int * ); | ||||
int (* ResampleUS)( AstMapping *, int, const int [], const int [], const | ||||
unsigned short int [], const unsigned short int [], int, void (*)(void), c | ||||
onst double [], int, double, int, unsigned short int, int, const int [], co | ||||
nst int [], const int [], const int [], unsigned short int [], unsigned sho | ||||
rt int [], int * ); | ||||
int (* TestInvert)( AstMapping *, int * ); | int (* TestInvert)( AstMapping *, int * ); | |||
int (* TestReport)( AstMapping *, int * ); | int (* TestReport)( AstMapping *, int * ); | |||
void (* ClearInvert)( AstMapping *, int * ); | void (* ClearInvert)( AstMapping *, int * ); | |||
void (* ClearReport)( AstMapping *, int * ); | void (* ClearReport)( AstMapping *, int * ); | |||
void (* Decompose)( AstMapping *, AstMapping **, AstMapping **, int *, i nt *, int *, int * ); | void (* Decompose)( AstMapping *, AstMapping **, AstMapping **, int *, i nt *, int *, int * ); | |||
void (* Invert)( struct AstMapping *, int * ); | void (* Invert)( struct AstMapping *, int * ); | |||
void (* MapBox)( AstMapping *, const double [], const double [], int, in t, double *, double *, double [], double [], int * ); | void (* MapBox)( AstMapping *, const double [], const double [], int, in t, double *, double *, double [], double [], int * ); | |||
int (* MapList)( AstMapping *, int, int, int *, AstMapping ***, int **, int * ); | int (* MapList)( AstMapping *, int, int, int *, AstMapping ***, int **, int * ); | |||
int *(* MapSplit)( AstMapping *, int, const int *, AstMapping **, int * ); | int *(* MapSplit)( AstMapping *, int, const int *, AstMapping **, int * ); | |||
void (* ReportPoints)( AstMapping *, int, AstPointSet *, AstPointSet *, int * ); | void (* ReportPoints)( AstMapping *, int, AstPointSet *, AstPointSet *, int * ); | |||
void (* SetInvert)( AstMapping *, int, int * ); | void (* SetInvert)( AstMapping *, int, int * ); | |||
void (* SetReport)( AstMapping *, int, int * ); | void (* SetReport)( AstMapping *, int, int * ); | |||
void (* Tran1)( AstMapping *, int, const double [], int, double [], int * ); | void (* Tran1)( AstMapping *, int, const double [], int, double [], int * ); | |||
void (* Tran2)( AstMapping *, int, const double [], const double [], int , double [], double [], int * ); | void (* Tran2)( AstMapping *, int, const double [], const double [], int , double [], double [], int * ); | |||
void (* TranGrid)( AstMapping *, int, const int[], const int[], double, int, int, int, int, double *, int * ); | void (* TranGrid)( AstMapping *, int, const int[], const int[], double, int, int, int, int, double *, int * ); | |||
void (* TranN)( AstMapping *, int, int, int, const double *, int, int, i nt, double *, int * ); | void (* TranN)( AstMapping *, int, int, int, const double *, int, int, i nt, double *, int * ); | |||
void (* TranP)( AstMapping *, int, int, const double *[], int, int, doub le *[], int * ); | void (* TranP)( AstMapping *, int, int, const double *[], int, int, doub le *[], int * ); | |||
#define DECLARE_GENERIC_ALL(X,Xtype) \ | ||||
int (* Resample##X)( AstMapping *, int, const int [], const int [], \ | ||||
const Xtype [], const Xtype [], int, \ | ||||
void (*)(), const double [], int, double, int, \ | ||||
Xtype, int, const int [], const int [], \ | ||||
const int [], const int [], Xtype [], Xtype [], int | ||||
* ); \ | ||||
DECLARE_GENERIC_ALL(B,signed char) | ||||
DECLARE_GENERIC_ALL(D,double) | ||||
DECLARE_GENERIC_ALL(F,float) | ||||
DECLARE_GENERIC_ALL(I,int) | ||||
DECLARE_GENERIC_ALL(K,INT_BIG) | ||||
DECLARE_GENERIC_ALL(L,long int) | ||||
DECLARE_GENERIC_ALL(S,short int) | ||||
DECLARE_GENERIC_ALL(UB,unsigned char) | ||||
DECLARE_GENERIC_ALL(UI,unsigned int) | ||||
DECLARE_GENERIC_ALL(UK,UINT_BIG) | ||||
DECLARE_GENERIC_ALL(UL,unsigned long int) | ||||
DECLARE_GENERIC_ALL(US,unsigned short int) | ||||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | ||||
DECLARE_GENERIC_ALL(LD,long double) | ||||
#endif | ||||
#undef DECLARE_GENERIC_ALL | ||||
#define DECLARE_GENERIC_DFI(X,Xtype) \ | ||||
void (* Rebin##X)( AstMapping *, double, int, const int [], const int [] | ||||
, \ | ||||
const Xtype [], const Xtype [], int, const double [], | ||||
int, \ | ||||
double, int, Xtype, int, const int [], const int [], | ||||
\ | ||||
const int [], const int [], Xtype [], Xtype [], int * | ||||
); \ | ||||
void (* RebinSeq##X)( AstMapping *, double, int, const int [], const int | ||||
[], \ | ||||
const Xtype [], const Xtype [], int, const double | ||||
[], \ | ||||
int, double, int, Xtype, int, const int [], \ | ||||
const int [], const int [], const int [], Xtype [] | ||||
, \ | ||||
Xtype [], double [], int *, int * ); | ||||
DECLARE_GENERIC_DFI(D,double) | ||||
DECLARE_GENERIC_DFI(F,float) | ||||
DECLARE_GENERIC_DFI(I,int) | ||||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | ||||
DECLARE_GENERIC_DFI(LD,long double) | ||||
#endif | ||||
#undef DECLARE_GENERIC_DFI | ||||
} AstMappingVtab; | } AstMappingVtab; | |||
#if defined(THREAD_SAFE) | #if defined(THREAD_SAFE) | |||
/* Define a structure holding all data items that are global within this | /* Define a structure holding all data items that are global within this | |||
class. */ | class. */ | |||
typedef struct AstMappingGlobals { | typedef struct AstMappingGlobals { | |||
AstMappingVtab Class_Vtab; | AstMappingVtab Class_Vtab; | |||
int Class_Init; | int Class_Init; | |||
char GetAttrib_Buff[ AST__MAPPING_GETATTRIB_BUFF_LEN + 1 ]; | char GetAttrib_Buff[ AST__MAPPING_GETATTRIB_BUFF_LEN + 1 ]; | |||
skipping to change at line 525 | skipping to change at line 570 | |||
const char *, AstChannel *channel, int * ); | const char *, AstChannel *channel, int * ); | |||
/* Thread-safe initialiser for all global data used by this module. */ | /* Thread-safe initialiser for all global data used by this module. */ | |||
#if defined(THREAD_SAFE) | #if defined(THREAD_SAFE) | |||
void astInitMappingGlobals_( AstMappingGlobals * ); | void astInitMappingGlobals_( AstMappingGlobals * ); | |||
#endif | #endif | |||
#endif | #endif | |||
/* Prototypes for member functions. */ | /* Prototypes for member functions. */ | |||
/* -------------------------------- */ | /* -------------------------------- */ | |||
#define PROTO_GENERIC_ALL(X,Xtype) \ | ||||
int astResample##X##_( AstMapping *, int, const int [], const int [], \ | ||||
const Xtype [], const Xtype [], int, \ | ||||
void (*)(), const double [], int, double, int, \ | ||||
Xtype, int, const int [], const int [], \ | ||||
const int [], const int [], Xtype [], Xtype [], int | ||||
* ); \ | ||||
PROTO_GENERIC_ALL(B,signed char) | ||||
PROTO_GENERIC_ALL(D,double) | ||||
PROTO_GENERIC_ALL(F,float) | ||||
PROTO_GENERIC_ALL(I,int) | ||||
PROTO_GENERIC_ALL(K,INT_BIG) | ||||
PROTO_GENERIC_ALL(L,long int) | ||||
PROTO_GENERIC_ALL(S,short int) | ||||
PROTO_GENERIC_ALL(UB,unsigned char) | ||||
PROTO_GENERIC_ALL(UI,unsigned int) | ||||
PROTO_GENERIC_ALL(UK,UINT_BIG) | ||||
PROTO_GENERIC_ALL(UL,unsigned long int) | ||||
PROTO_GENERIC_ALL(US,unsigned short int) | ||||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | #if HAVE_LONG_DOUBLE /* Not normally implemented */ | |||
int astResampleLD_( AstMapping *, int, const int [], const int [], const lo | PROTO_GENERIC_ALL(LD,long double) | |||
ng double [], const long double [], int, void (*)(void), const double [], i | ||||
nt, double, int, long double, int, const int [], const int [], const int [] | ||||
, const int [], long double [], long double [], int * ); | ||||
void astRebinLD_( AstMapping *, double, int, const int [], const int [], co | ||||
nst long double [], const long double [], int, const double [], int, double | ||||
, int, long double, int, const int [], const int [], const int [], const in | ||||
t [], long double [], long double [], int * ); | ||||
void astRebinSeqLD_( AstMapping *, double, int, const int [], const int [], | ||||
const long double [], const long double [], int, const double [], int, dou | ||||
ble, int, long double, int, const int [], const int [], const int [], const | ||||
int [], long double [], long double [], double [], int *, int * ); | ||||
#endif | #endif | |||
#undef PROTO_GENERIC_ALL | ||||
#define PROTO_GENERIC_DFI(X,Xtype) \ | ||||
void astRebin##X##_( AstMapping *, double, int, const int [], const int | ||||
[], \ | ||||
const Xtype [], const Xtype [], int, const double [], | ||||
int, \ | ||||
double, int, Xtype, int, const int [], const int [], | ||||
\ | ||||
const int [], const int [], Xtype [], Xtype [], int * | ||||
); \ | ||||
void astRebinSeq##X##_( AstMapping *, double, int, const int [], const i | ||||
nt [], \ | ||||
const Xtype [], const Xtype [], int, const double | ||||
[], \ | ||||
int, double, int, Xtype, int, const int [], \ | ||||
const int [], const int [], const int [], Xtype [] | ||||
, \ | ||||
Xtype [], double [], int *, int * ); | ||||
PROTO_GENERIC_DFI(D,double) | ||||
PROTO_GENERIC_DFI(F,float) | ||||
PROTO_GENERIC_DFI(I,int) | ||||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | ||||
PROTO_GENERIC_DFI(LD,long double) | ||||
#endif | ||||
#undef PROTO_GENERIC_DFI | ||||
AstMapping *astRemoveRegions_( AstMapping *, int * ); | AstMapping *astRemoveRegions_( AstMapping *, int * ); | |||
AstMapping *astSimplify_( AstMapping *, int * ); | AstMapping *astSimplify_( AstMapping *, int * ); | |||
void astRebinD_( AstMapping *, double, int, const int [], const int [], con | ||||
st double [], const double [], int, const double [], int, double, int, doub | ||||
le, int, const int [], const int [], const int [], const int [], double [], | ||||
double [], int * ); | ||||
void astRebinF_( AstMapping *, double, int, const int [], const int [], con | ||||
st float [], const float [], int, const double [], int, double, int, float, | ||||
int, const int [], const int [], const int [], const int [], float [], flo | ||||
at [], int * ); | ||||
void astRebinI_( AstMapping *, double, int, const int [], const int [], con | ||||
st int [], const int [], int, const double [], int, double, int, int, int, | ||||
const int [], const int [], const int [], const int [], int [], int [], int | ||||
* ); | ||||
void astRebinSeqD_( AstMapping *, double, int, const int [], const int [], | ||||
const double [], const double [], int, const double [], int, double, int, d | ||||
ouble, int, const int [], const int [], const int [], const int [], double | ||||
[], double [], double [], int *, int * ); | ||||
void astRebinSeqF_( AstMapping *, double, int, const int [], const int [], | ||||
const float [], const float [], int, const double [], int, double, int, flo | ||||
at, int, const int [], const int [], const int [], const int [], float [], | ||||
float [], double [], int *, int * ); | ||||
void astRebinSeqI_( AstMapping *, double, int, const int [], const int [], | ||||
const int [], const int [], int, const double [], int, double, int, int, in | ||||
t, const int [], const int [], const int [], const int [], int [], int [], | ||||
double [], int *, int * ); | ||||
int astResampleB_( AstMapping *, int, const int [], const int [], const sig | ||||
ned char [], const signed char [], int, void (*)(void), const double [], in | ||||
t, double, int, signed char, int, const int [], const int [], const int [], | ||||
const int [], signed char [], signed char [], int * ); | ||||
int astResampleD_( AstMapping *, int, const int [], const int [], const dou | ||||
ble [], const double [], int, void (*)(void), const double [], int, double, | ||||
int, double, int, const int [], const int [], const int [], const int [], | ||||
double [], double [], int * ); | ||||
int astResampleF_( AstMapping *, int, const int [], const int [], const flo | ||||
at [], const float [], int, void (*)(void), const double [], int, double, i | ||||
nt, float, int, const int [], const int [], const int [], const int [], flo | ||||
at [], float [], int * ); | ||||
int astResampleI_( AstMapping *, int, const int [], const int [], const int | ||||
[], const int [], int, void (*)(void), const double [], int, double, int, | ||||
int, int, const int [], const int [], const int [], const int [], int [], i | ||||
nt [], int * ); | ||||
int astResampleL_( AstMapping *, int, const int [], const int [], const lon | ||||
g int [], const long int [], int, void (*)(void), const double [], int, dou | ||||
ble, int, long int, int, const int [], const int [], const int [], const in | ||||
t [], long int [], long int [], int * ); | ||||
int astResampleS_( AstMapping *, int, const int [], const int [], const sho | ||||
rt int [], const short int [], int, void (*)(void), const double [], int, d | ||||
ouble, int, short int, int, const int [], const int [], const int [], const | ||||
int [], short int [], short int [], int * ); | ||||
int astResampleUB_( AstMapping *, int, const int [], const int [], const un | ||||
signed char [], const unsigned char [], int, void (*)(void), const double [ | ||||
], int, double, int, unsigned char, int, const int [], const int [], const | ||||
int [], const int [], unsigned char [], unsigned char [], int * ); | ||||
int astResampleUI_( AstMapping *, int, const int [], const int [], const un | ||||
signed int [], const unsigned int [], int, void (*)(void), const double [], | ||||
int, double, int, unsigned int, int, const int [], const int [], const int | ||||
[], const int [], unsigned int [], unsigned int [], int * ); | ||||
int astResampleUL_( AstMapping *, int, const int [], const int [], const un | ||||
signed long int [], const unsigned long int [], int, void (*)(void), const | ||||
double [], int, double, int, unsigned long int, int, const int [], const in | ||||
t [], const int [], const int [], unsigned long int [], unsigned long int [ | ||||
], int * ); | ||||
int astResampleUS_( AstMapping *, int, const int [], const int [], const un | ||||
signed short int [], const unsigned short int [], int, void (*)(void), cons | ||||
t double [], int, double, int, unsigned short int, int, const int [], const | ||||
int [], const int [], const int [], unsigned short int [], unsigned short | ||||
int [], int * ); | ||||
void astInvert_( AstMapping *, int * ); | void astInvert_( AstMapping *, int * ); | |||
int astLinearApprox_( AstMapping *, const double *, const double *, double, double *, int * ); | int astLinearApprox_( AstMapping *, const double *, const double *, double, double *, int * ); | |||
int astQuadApprox_( AstMapping *, const double[2], const double[2], int, in t, double *, double *, int * ); | int astQuadApprox_( AstMapping *, const double[2], const double[2], int, in t, double *, double *, int * ); | |||
void astTran1_( AstMapping *, int, const double [], int, double [], int * ) ; | void astTran1_( AstMapping *, int, const double [], int, double [], int * ) ; | |||
void astTran2_( AstMapping *, int, const double [], const double [], int, d ouble [], double [], int * ); | void astTran2_( AstMapping *, int, const double [], const double [], int, d ouble [], double [], int * ); | |||
void astTranGrid_( AstMapping *, int, const int[], const int[], double, int , int, int, int, double *, int * ); | void astTranGrid_( AstMapping *, int, const int[], const int[], double, int , int, int, int, double *, int * ); | |||
void astTranN_( AstMapping *, int, int, int, const double *, int, int, int, double *, int * ); | void astTranN_( AstMapping *, int, int, int, const double *, int, int, int, double *, int * ); | |||
void astTranP_( AstMapping *, int, int, const double *[], int, int, double *[], int * ); | void astTranP_( AstMapping *, int, int, const double *[], int, int, double *[], int * ); | |||
#if defined(astCLASS) /* Protected */ | #if defined(astCLASS) /* Protected */ | |||
skipping to change at line 634 | skipping to change at line 704 | |||
#endif | #endif | |||
/* Interfaces to member functions. */ | /* Interfaces to member functions. */ | |||
/* ------------------------------- */ | /* ------------------------------- */ | |||
/* Here we make use of astCheckMapping (et al.) to validate Mapping | /* Here we make use of astCheckMapping (et al.) to validate Mapping | |||
pointers before use. This provides a contextual error report if a | pointers before use. This provides a contextual error report if a | |||
pointer to the wrong sort of object is supplied. */ | pointer to the wrong sort of object is supplied. */ | |||
#if HAVE_LONG_DOUBLE /* Not normally implemented */ | #if HAVE_LONG_DOUBLE /* Not normally implemented */ | |||
#define astResampleLD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | #define astResampleLD(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | |||
astINVOKE(V,astResampleLD_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleLD_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRebinLD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,param | ||||
s,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) | ||||
\ | ||||
astINVOKE(V,astRebinLD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in, | ||||
in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out, | ||||
lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astRebinSeqLD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,pa | ||||
rams,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_v | ||||
ar,weights,nused) \ | ||||
astINVOKE(V,astRebinSeqLD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_ | ||||
in,in,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_o | ||||
ut,lbnd,ubnd,out,out_var,weights,nused,STATUS_PTR)) | ||||
#endif | #endif | |||
#define astInvert(this) \ | #define astInvert(this) \ | |||
astINVOKE(V,astInvert_(astCheckMapping(this),STATUS_PTR)) | astINVOKE(V,astInvert_(astCheckMapping(this),STATUS_PTR)) | |||
#define astLinearApprox(this,lbnd,ubnd,tol,fit) \ | #define astLinearApprox(this,lbnd,ubnd,tol,fit) \ | |||
astINVOKE(V,astLinearApprox_(astCheckMapping(this),lbnd,ubnd,tol,fit,STATUS _PTR)) | astINVOKE(V,astLinearApprox_(astCheckMapping(this),lbnd,ubnd,tol,fit,STATUS _PTR)) | |||
#define astQuadApprox(this,lbnd,ubnd,nx,ny,fit,rms) \ | #define astQuadApprox(this,lbnd,ubnd,nx,ny,fit,rms) \ | |||
astINVOKE(V,astQuadApprox_(astCheckMapping(this),lbnd,ubnd,nx,ny,fit,rms,ST ATUS_PTR)) | astINVOKE(V,astQuadApprox_(astCheckMapping(this),lbnd,ubnd,nx,ny,fit,rms,ST ATUS_PTR)) | |||
#define astRebinD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) \ | #define astRebinD(this,wlim,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,params ,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out_var) \ | |||
astINVOKE(V,astRebinD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astRebinD_(astCheckMapping(this),wlim,ndim_in,lbnd_in,ubnd_in,i n,in_var,interp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,l bnd,ubnd,out,out_var,STATUS_PTR)) | |||
skipping to change at line 670 | skipping to change at line 736 | |||
#define astResampleF(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | #define astResampleF(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | |||
astINVOKE(V,astResampleF_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleF_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | #define astResampleL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | |||
astINVOKE(V,astResampleL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | #define astResampleUL(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | |||
astINVOKE(V,astResampleUL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleUL_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | #define astResampleI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | |||
astINVOKE(V,astResampleI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | #define astResampleUI(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | |||
astINVOKE(V,astResampleUI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleUI_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleK(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, | ||||
params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out | ||||
_var) \ | ||||
astINVOKE(V,astResampleK_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, | ||||
in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd | ||||
_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astResampleUK(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp | ||||
,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou | ||||
t_var) \ | ||||
astINVOKE(V,astResampleUK_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in | ||||
,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn | ||||
d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | ||||
#define astResampleS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | #define astResampleS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | |||
astINVOKE(V,astResampleS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | #define astResampleUS(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | |||
astINVOKE(V,astResampleUS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleUS_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | #define astResampleB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp, params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,out _var) \ | |||
astINVOKE(V,astResampleB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in, in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd _out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astResampleUB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | #define astResampleUB(this,ndim_in,lbnd_in,ubnd_in,in,in_var,interp,finterp ,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubnd_out,lbnd,ubnd,out,ou t_var) \ | |||
astINVOKE(V,astResampleUB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | astINVOKE(V,astResampleUB_(astCheckMapping(this),ndim_in,lbnd_in,ubnd_in,in ,in_var,interp,finterp,params,flags,tol,maxpix,badval,ndim_out,lbnd_out,ubn d_out,lbnd,ubnd,out,out_var,STATUS_PTR)) | |||
#define astRemoveRegions(this) astINVOKE(O,astRemoveRegions_(astCheckMappin g(this),STATUS_PTR)) | #define astRemoveRegions(this) astINVOKE(O,astRemoveRegions_(astCheckMappin g(this),STATUS_PTR)) | |||
#define astSimplify(this) astINVOKE(O,astSimplify_(astCheckMapping(this),ST ATUS_PTR)) | #define astSimplify(this) astINVOKE(O,astSimplify_(astCheckMapping(this),ST ATUS_PTR)) | |||
End of changes. 10 change blocks. | ||||
171 lines changed or deleted | 139 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |