Main Page | Modules | Class List | Directories | File List | Class Members | File Members

misc_error.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 */
00028 
00029 #ifndef _GAN_MISC_ERROR_H
00030 #define _GAN_MISC_ERROR_H
00031 
00032 #include <stdio.h>
00033 #include <float.h>
00034 #include <limits.h>
00035 #include <gandalf/common/gan_err.h>
00036 #include <gandalf/common/misc_defs.h>
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00052 /* Gandalf error codes. If you change them, remember to change the switch
00053  * statement in print_error() in misc_error.c.
00054  */
00055 #define GAN_ERROR_FAILURE                   1
00056 #define GAN_ERROR_NOT_IMPLEMENTED           2
00057 #define GAN_ERROR_REF_OUTSIDE_MATRIX        3
00058 #define GAN_ERROR_CANT_REALLOC              4
00059 #define GAN_ERROR_MALLOC_FAILED             5
00060 #define GAN_ERROR_DIFFERENT_DIMS            6
00061 #define GAN_ERROR_INCOMPATIBLE              7
00062 #define GAN_ERROR_MATRIX_NOT_SQUARE         8
00063 #define GAN_ERROR_INPLACE_TRANSPOSE         9
00064 #define GAN_ERROR_INPLACE_MULTIPLY         10
00065 #define GAN_ERROR_ARRAY_TOO_SMALL          11
00066 #define GAN_ERROR_ILLEGAL_TYPE             12
00067 #define GAN_ERROR_NO_IMPLICIT_INV          13
00068 #define GAN_ERROR_CLAPACK_ILLEGAL_ARG      14
00069 #define GAN_ERROR_CBLAS_ILLEGAL_ARG        15
00070 #define GAN_ERROR_CBLAS_FAILED             16
00071 #define GAN_ERROR_NOT_POSITIVE_DEFINITE    17
00072 #define GAN_ERROR_DIVISION_BY_ZERO         18
00073 #define GAN_ERROR_SQRT_OF_NEG_NUMBER       19
00074 #define GAN_ERROR_NO_CONVERGENCE           20
00075 #define GAN_ERROR_SINGULAR_MATRIX          21
00076 #define GAN_ERROR_IMAGE_TOO_SMALL          22
00077 #define GAN_ERROR_NO_DATA                  23
00078 #define GAN_ERROR_NOT_ENOUGH_DATA          24
00079 #define GAN_ERROR_OPENING_FILE             25
00080 #define GAN_ERROR_CORRUPTED_FILE           26
00081 #define GAN_ERROR_OUTSIDE_RANGE            27
00082 #define GAN_ERROR_TOO_LARGE                28
00083 #define GAN_ERROR_TOO_SMALL                29
00084 #define GAN_ERROR_TRUNCATED_FILE           30
00085 #define GAN_ERROR_NOT_INITIALISED          31
00086 #define GAN_ERROR_ILLEGAL_ARGUMENT         32
00087 #define GAN_ERROR_CCMATH_FAILED            33
00088 #define GAN_ERROR_NO_SOLUTION              34
00089 #define GAN_ERROR_READING_FROM_FILE        35
00090 #define GAN_ERROR_WRITING_TO_FILE          36
00091 
00092 void gan_err_default_reporter(void);
00093 
00102 #ifdef __cplusplus
00103 }
00104 #endif
00105 
00106 #endif /* #ifndef _GAN_MISC_ERROR_H */

Generated on Sat May 21 23:52:48 2005 by  doxygen 1.4.3