- #include <stdio.h>
- #include <stddef.h>
- #include <stdlib.h>
- #define NR_END 1
- #define FREE_ARG char*
- void nrerror(char error_text[])
- /* Numerical Recipes standard error handler */
- {
- }
- int *ivector(long nl, long nh)
- /* allocate an int vector with subscript range v[nl..nh] */
- {
- int *v;
- if (!v) nrerror("allocation failure in ivector()");
- return v-nl+NR_END;
- }
- double *dvector(long nl, long nh)
- /* allocate a double vector with subscript range v[nl..nh] */
- {
- double *v;
- if (!v) nrerror("allocation failure in dvector()");
- return v-nl+NR_END;
- }
- void free_dvector(double *v, long nl, long nh)
- /* free a double vector allocated with dvector() */
- {
- }
- void free_ivector(int *v, long nl, long nh)
- /* free an int vector allocated with ivector() */
- {
- }
Raw Paste