#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include "nf_utilities.h"
 
Go to the source code of this file.
◆ is_nan
      
        
          | #define is_nan | 
          ( | 
            | 
          a | ) | 
             std::isnan(a) | 
        
      
 
 
◆ nfu_calloc()
      
        
          | void* nfu_calloc  | 
          ( | 
          size_t  | 
          size,  | 
        
        
           | 
           | 
          size_t  | 
          n  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 123 of file nf_utilities.cc.
  125     void *p = calloc( size, 
n );
   127     if( 
nfu_debugging ) 
printf( 
"nfu_calloc  %12p size = %8llu, n = %8llu\n", p, (
long long unsigned) size, (
long long unsigned) 
n );
 printf("%d Experimental points found\, nlines)
 
 
 
 
◆ nfu_free()
      
        
          | void* nfu_free  | 
          ( | 
          void *  | 
          p | ) | 
           | 
        
      
 
Definition at line 143 of file nf_utilities.cc.
printf("%d Experimental points found\, nlines)
 
 
 
 
◆ nfu_getInfinity()
      
        
          | double nfu_getInfinity  | 
          ( | 
          double  | 
          sign | ) | 
           | 
        
      
 
 
◆ nfu_getNAN()
      
        
          | double nfu_getNAN  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
 
◆ nfu_isNAN()
      
        
          | int nfu_isNAN  | 
          ( | 
          double  | 
          d | ) | 
           | 
        
      
 
 
◆ nfu_malloc()
      
        
          | void* nfu_malloc  | 
          ( | 
          size_t  | 
          size | ) | 
           | 
        
      
 
Definition at line 113 of file nf_utilities.cc.
  115     void *p = malloc( size );
   117     if( 
nfu_debugging ) 
printf( 
"nfu_malloc  %12p size = %8llu\n", p, (
long long unsigned) size );
 printf("%d Experimental points found\, nlines)
 
 
 
 
◆ nfu_printErrorMsg()
      
        
          | void nfu_printErrorMsg  | 
          ( | 
          char *  | 
          fmt,  | 
        
        
           | 
           | 
            | 
          ...  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 166 of file nf_utilities.cc.
  170     va_start( args, fmt );
   171     vfprintf( stderr, fmt, args );
   172     fprintf( stderr, 
"\n" );
   175     exit( EXIT_FAILURE );
  
 
 
◆ nfu_printMsg()
      
        
          | void nfu_printMsg  | 
          ( | 
          char *  | 
          fmt,  | 
        
        
           | 
           | 
            | 
          ...  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 154 of file nf_utilities.cc.
  158     va_start( args, fmt );
   159     vfprintf( stderr, fmt, args );
   160     fprintf( stderr, 
"\n" );
  
 
 
◆ nfu_realloc()
      
        
          | void* nfu_realloc  | 
          ( | 
          size_t  | 
          size,  | 
        
        
           | 
           | 
          void *  | 
          old  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 133 of file nf_utilities.cc.
  135     void *p = realloc( old, size );
   137     if( 
nfu_debugging ) 
printf( 
"nfu_realloc %12p size = %8llu, old = %12p\n", p, (
long long unsigned) size, old );
 printf("%d Experimental points found\, nlines)
 
 
 
 
◆ nfu_setMemoryDebugMode()
      
        
          | void nfu_setMemoryDebugMode  | 
          ( | 
          int  | 
          mode | ) | 
           | 
        
      
 
 
◆ nfu_statusMessage()
      
        
          | const char* nfu_statusMessage  | 
          ( | 
          nfu_status  | 
          status | ) | 
           | 
        
      
 
Definition at line 76 of file nf_utilities.cc.
static const char empty_message[]
 
static const char mallocError_message[]
 
static const char unsupportedInterpolation_message[]
 
static const char XNotAscending_message[]
 
static const char insufficientMemory_message[]
 
static const char badIndex_message[]
 
static const char unsupportedInterpolationConversion_message[]
 
static const char tooFewPoints_message[]
 
static const char badSelf_message[]
 
static const char unknownStatus_message[]
 
static const char otherInterpolation_message[]
 
static const char XOutsideDomain_message[]
 
static const char Okay_message[]
 
static const char notMutualDomian_message[]
 
static const char divByZero_message[]
 
static const char badIntegrationInput_message[]
 
static const char failedToConverge_message[]
 
static const char invalidInterpolation_message[]
 
static const char badIndexForX_message[]
 
static const char badInput_message[]
 
static const char badNorm_message[]
 
static const char oddNumberOfValues_message[]
 
 
 
 
◆ badIndex_message
  
  
      
        
          | const char badIndex_message[] = "bad index" | 
         
       
   | 
  
static   | 
  
 
 
◆ badIndexForX_message
  
  
      
        
          | const char badIndexForX_message[] = "index not correct for x value" | 
         
       
   | 
  
static   | 
  
 
 
◆ badInput_message
  
  
      
        
          | const char badInput_message[] = "bad input to function" | 
         
       
   | 
  
static   | 
  
 
 
◆ badIntegrationInput_message
  
  
      
        
          | const char badIntegrationInput_message[] = "bad integration input" | 
         
       
   | 
  
static   | 
  
 
 
◆ badNorm_message
  
  
      
        
          | const char badNorm_message[] = "bad norm" | 
         
       
   | 
  
static   | 
  
 
 
◆ badSelf_message
  
  
      
        
          | const char badSelf_message[] = "source object has bad status value" | 
         
       
   | 
  
static   | 
  
 
 
◆ divByZero_message
  
  
      
        
          | const char divByZero_message[] = "division by zero" | 
         
       
   | 
  
static   | 
  
 
 
◆ empty_message
  
  
      
        
          | const char empty_message[] = "empty instance" | 
         
       
   | 
  
static   | 
  
 
 
◆ failedToConverge_message
  
  
      
        
          | const char failedToConverge_message[] = "failed to converge" | 
         
       
   | 
  
static   | 
  
 
 
◆ insufficientMemory_message
  
  
      
        
          | const char insufficientMemory_message[] = "user's memory is too small to hanlde data" | 
         
       
   | 
  
static   | 
  
 
 
◆ invalidInterpolation_message
  
  
      
        
          | const char invalidInterpolation_message[] = "bad x,y values for interpolation" | 
         
       
   | 
  
static   | 
  
 
 
◆ mallocError_message
  
  
      
        
          | const char mallocError_message[] = "could not allocate memory" | 
         
       
   | 
  
static   | 
  
 
 
◆ nfu_debugging
◆ notMutualDomian_message
  
  
      
        
          | const char notMutualDomian_message[] = "domains are not mutual" | 
         
       
   | 
  
static   | 
  
 
 
◆ oddNumberOfValues_message
  
  
      
        
          | const char oddNumberOfValues_message[] = "odd number of inputted values" | 
         
       
   | 
  
static   | 
  
 
 
◆ Okay_message
  
  
      
        
          | const char Okay_message[] = "all is okay" | 
         
       
   | 
  
static   | 
  
 
 
◆ otherInterpolation_message
  
  
      
        
          | const char otherInterpolation_message[] = "other integration not supported" | 
         
       
   | 
  
static   | 
  
 
 
◆ tooFewPoints_message
  
  
      
        
          | const char tooFewPoints_message[] = "too few points in instance" | 
         
       
   | 
  
static   | 
  
 
 
◆ unknownStatus_message
  
  
      
        
          | const char unknownStatus_message[] = "unknown (i.e., invalid) status value" | 
         
       
   | 
  
static   | 
  
 
 
◆ unsupportedInterpolation_message
  
  
      
        
          | const char unsupportedInterpolation_message[] = "unsupported interpolation" | 
         
       
   | 
  
static   | 
  
 
 
◆ unsupportedInterpolationConversion_message
  
  
      
        
          | const char unsupportedInterpolationConversion_message[] = "unsupported interpolation conversion" | 
         
       
   | 
  
static   | 
  
 
 
◆ XNotAscending_message
  
  
      
        
          | const char XNotAscending_message[] = "x values are not ascending" | 
         
       
   | 
  
static   | 
  
 
 
◆ XOutsideDomain_message
  
  
      
        
          | const char XOutsideDomain_message[] = "x value not in domain" | 
         
       
   | 
  
static   |