AMA.h
Go to the documentation of this file.
1 
4 #ifndef AMA_H
5 #define AMA_H
6 
7 #include <cnspla.h>
8 #include <stdio.h>
9 #include <stdlib.h>
10 
11 /* -----------------------------------------------------------------------------------------------------------------------------------------------------------
12  -----------------------------------------------------------------------------------------------------------------------------------------------------------
13  --- AMA Enums ---
14  -----------------------------------------------------------------------------------------------------------------------------------------------------------
15  ----------------------------------------------------------------------------------------------------------------------------------------------------------- */
16 
24  };
25 
76  };
77 
226  };
227 
274  };
275 
283  };
284 
285 
286 
287 
288 /* -----------------------------------------------------------------------------------------------------------------------------------------------------------
289  -----------------------------------------------------------------------------------------------------------------------------------------------------------
290  --- AMA Macros ---
291  -----------------------------------------------------------------------------------------------------------------------------------------------------------
292  ----------------------------------------------------------------------------------------------------------------------------------------------------------- */
293 
299 #define AMA_NO_ERROR 0
300 #define AMA_WARNING_ERROR 1
301 #define AMA_PROCESS_ERROR 2
302 #define AMA_INPUT_ERROR 3
303 #define AMA_FATAL_ERROR 4
305 #define AMA_ALLOCATE_ERROR 5
306 #define AMA_EXTRAPOLATION 100
314 #define AMA_MXNIND 6
318 /* -----------------------------------------------------------------------------------------------------------------------------------------------------------
319  -----------------------------------------------------------------------------------------------------------------------------------------------------------
320  --- AMA Structures ---
321  -----------------------------------------------------------------------------------------------------------------------------------------------------------
322  ----------------------------------------------------------------------------------------------------------------------------------------------------------- */
323 
334 struct ama_options
335 {
345  enum AMA_ErrorFlag errorFlag;
352  FILE *errorFp;
356  long int outputFlag;
363  FILE *outputFp;
375  long int ier;
379  double lwrbnd;
390  double uprbnd;
402 };
403 
454 struct ama_spline
455 {
456 };
457 
458 typedef struct ama_options AMA_OPTIONS;
460 typedef CNSPLA_SPLINE AMA_SPLINE;
462 /* -------------------------------------------------------------------------------------------------------------------------------
463  -------------------------------------------------------------------------------------------------------------------------------
464  --- THESE ARE USER CALLABLE FUNCTIONS ---
465  -------------------------------------------------------------------------------------------------------------------------------
466  ------------------------------------------------------------------------------------------------------------------------------- */
467 
468 /* -------------------------------------------------------------------------------------------------------------------------------
469  -------------------------------------------------------------------------------------------------------------------------------
470  --- THESE ARE USER SUPPORT FUNCTIONS ---
471  --- THESE FUNCTIONS CHECK INPUT MEMBERS OR SET INPUT AND OUTPUT MEMBERS OF USER DEFINABLE STRUCTURES ---
472  -------------------------------------------------------------------------------------------------------------------------------
473  ------------------------------------------------------------------------------------------------------------------------------- */
474 
475 long int AMA_LamdaInterp ( AMA_OPTIONS *options,
476  long int n ,
477  double *x ,
478  long int degree ,
479  long int *mlamda ,
480  double **lamda );
481 
482 long int AMA_LamdaMonoInterp ( AMA_OPTIONS *options ,
483  long int n ,
484  double *x ,
485  long int degree ,
486  enum AMA_Continuity continuity,
487  long int *mlamda ,
488  double **lamda );
489 
490 
491 #include <AMA_Options.h>
492 #include <AMA_Unv.h>
493 #include <AMA_Mltv.h>
494 #include <AMA_Spline.h>
495 #include <AMA_Visit.h>
496 
497 #endif /* AMA_H */
FILE * errorFp
Error message file pointer.
Definition: AMA.h:353
Monotonicity constraints are not imposed.
Definition: AMA.h:269
FILE * outputFp
Output file pointer.
Definition: AMA.h:364
AMA_Continuity
This enumeration specifies the spline continuity condition imposed by the following AMA Functions: ...
Definition: AMA.h:224
AMA_ErrorFlag
This enumeration specifies if error messages are written to AMA_OPTIONS::errorFp. ...
Definition: AMA.h:281
double lwrbnd
The lower bound imposed on a spline approximation.
Definition: AMA.h:380
Error messages are written to AMA_OPTIONS::errorFp.
Definition: AMA.h:282
long int ier
The maximum Success/Error Code produced by an AMA Function and all AMA Spline Library functions it in...
Definition: AMA.h:376
The spline satisfies the full continuity condition.
Definition: AMA.h:224
long int outputFlag
Output level flag.
Definition: AMA.h:357
double uprbnd
The upper bound imposed on a spline approximation.
Definition: AMA.h:391
This structure is used to define a tensor product spline .
Definition: AMA.h:455
Negative derivative constraints are not imposed.
Definition: AMA.h:271
Impose the natural boundary conditions.
Definition: AMA.h:74
Impose the default boundary conditions.
Definition: AMA.h:73
This structure is used to maintain the AMA Spline Library environment.
Definition: AMA.h:335
Impose user specified boundary conditions.
Definition: AMA.h:75
AMA_Monotonicity
This enumeration specifies the monotonicity constraints imposed by the following AMA Functions: ...
Definition: AMA.h:269
enum AMA_ErrorFlag errorFlag
Error messsage flag.
Definition: AMA.h:346
CNSPLA_SPLINE AMA_SPLINE
Definition: AMA.h:461
The spline satisfies the reduced continuity condition.
Definition: AMA.h:225
long int AMA_LamdaInterp(AMA_OPTIONS *options, long int n, double *x, long int degree, long int *mlamda, double **lamda)
Define Approximation and Interpolation Knot Vector
Definition: AMA.c:1956
Error messages are not written to AMA_OPTIONS::errorFp.
Definition: AMA.h:281
Monotonicity constraints are imposed.
Definition: AMA.h:273
Definition: AMA.h:22
Derivative equal to zero constraints are not imposed.
Definition: AMA.h:272
long int AMA_LamdaMonoInterp(AMA_OPTIONS *options, long int n, double *x, long int degree, enum AMA_Continuity continuity, long int *mlamda, double **lamda)
Define Monotonic Spline Interpolation Knot Vector.
Definition: AMA.c:2205
Definition: AMA.h:23
AMA_BoundaryConditions
This enumeration specifies the boundary conditions imposed by the following AMA Functions: ...
Definition: AMA.h:73
Positive derivative constraints are not imposed.
Definition: AMA.h:270
AMA_Boolean
This enumeration provides a boolean capability.
Definition: AMA.h:22