Revision 579 trunk/src/linad99/fvar.hpp

fvar.hpp (revision 579)
47 47
Macro definitions.
48 48
*/
49 49

  
50

  
50
#include <math.h>
51 51
// Borrow definition of M_PI from GCC
52 52
#ifndef M_PI
53 53
#   define M_PI 3.14159265358979323846
......
136 136
#      define GCC3
137 137
#   endif
138 138
#endif
139
/*
140
#if (defined(__MSVC32__))
141
#   if (__MSVC32__>=7)
142
#      define __MSC_NEWER__
143
#   endif
144
#endif
145 139

  
146
#if defined(__MINGW32__)
147
#   include <conio.h>
148
#endif
149
*/
150 140
#if defined(_ADEXEP)
151 141
#   define USE_EXECPTIONS
152 142
#endif
......
244 234
#   define SAFE_ARRAYS
245 235
#endif
246 236

  
247
//#ifdef USE_ASSEMBLER
248
//#include "adass.h"
249
//#endif
250

  
251 237
// C language function prototypes
252 238
extern "C"
253 239
{
......
359 345
#endif
360 346

  
361 347
#include <stdio.h>
362
//# if defined (__WAT32__)
363
//#  if defined (max)
364
//#    undef max
365
//#  endif
366
//#  if defined (min)
367
//#    undef min
368
//#  endif
369
//#endif
370 348

  
371
//#if defined (__TURBOC__) || defined (__WAT32__)
372
//#include <mem.h>		// to get memcpy and NULL
373
//#include <fstream.h>		// to get fstreambase
374
//#include <iostream.h>
375
//#include <dos.h>
376
//#undef __ZTC__
377
//#define __USE_IOSTREAM__
378
//#undef __SUN__
379
//#endif
380

  
381 349
#if ( defined(__GNUC__) && __GNUC__<3) || defined(__SUNPRO_CC)
382 350
#   if defined(linux) || defined(__CYGWIN__) || defined(__SUNPRO_CC)
383 351
#      include <strstream.h>
......
436 404
#      define _FPOS_T_DEFINED
437 405
#   endif
438 406
#endif
439
/*
440
#if defined(__GNUC__)
441
   extern "C" int getch(void);
442
#else
443
   int getch(void);
444
#endif
445
*/
446
#include <math.h>
447 407

  
408
//#include <math.h>
409

  
448 410
#if defined(__BORLANDC__)
449 411
#   if (__BORLANDC__  > 0x0520)
450 412
       using std::ofstream;
......
2413 2375
   friend class dvar_vector;
2414 2376
};
2415 2377

  
2416
class dvector			/// Vector of double precision numbers
2378

  
2379
/** Vector of double precision numbers.
2380
A basic container class for a one dimensional array of double precision
2381
floating point numbers. 
2382
Fundamental building block for higher dimensional arrays.
2383
All ADMB vector classes have similar functionality.
2384
*/
2385
class dvector
2417 2386
{
2418 2387
 protected:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff