Revision 1518

trunk/src/nh99/mcmcvar.h (revision 1518)
1
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7
 * ADModelbuilder and associated libraries and documentations are
8
 * provided under the general terms of the "BSD" license.
9
 *
10
 * License:
11
 *
12
 * Redistribution and use in source and binary forms, with or without
13
 * modification, are permitted provided that the following conditions are
14
 * met:
15
 *
16
 * 1. Redistributions of source code must retain the above copyright
17
 * notice, this list of conditions and the following disclaimer.
18
 *
19
 * 2.  Redistributions in binary form must reproduce the above copyright
20
 * notice, this list of conditions and the following disclaimer in the
21
 * documentation and/or other materials provided with the distribution.
22
 *
23
 * 3.  Neither the name of the  University of California, Otter Research,
24
 * nor the ADMB Foundation nor the names of its contributors may be used
25
 * to endorse or promote products derived from this software without
26
 * specific prior written permission.
27
 *
28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
 *
40
 */
41
/**
42
 * \file
43
 * Description not yet available.
44
 */
45
//#define DO_PROFILE
46
#if !defined(__MSVC32__)
47
  #if defined(__GNUC__)
48
    #if (__GNUC__ < 3)
49
      #pragma interface
50
    #endif
51
  #else
52
    #pragma interface
53
  #endif
54
#endif
55
#ifndef _ADMODEL_H_
56
  #define  _ADMODEL_H_
57

  
58
#if !defined(linux)
59
#  define BORCAST (prevariable&)
60
#else
61
#  define BORCAST
62
#endif
63
#if defined(USE_LAPLACE)
64
  class laplace_approximation_calculator;
65
  void cleanup_laplace_stuff(laplace_approximation_calculator *);
66
#endif
67

  
68
#include <fvar.hpp>
69
#if defined(USE_ADPVM)
70
#  include <adpvm2.h>
71
#endif
72

  
73
//#include <d4arr.hpp>
74
#include <cifstrem.h>
75

  
76
#include <adstring.hpp>
77

  
78
#if defined(UNIXKLUDGE)
79
#include <unistd.h>
80
#endif
81

  
82
//#define _ADSTD_ std::
83
#define param_matrix named_dvar_matrix
84
#define param_vector named_dvar_vector
85
#define param_number named_dvariable
86
#define param_3array named_dvar3_array
87
#define param_4array named_dvar4_array
88
#define param_5array named_dvar5_array
89
#define param_6array named_dvar6_array
90
#define param_7array named_dvar7_array
91

  
92
#define SPparam_matrix SPnamed_dvar_matrix
93
#define SPparam_vector SPnamed_dvar_vector
94
#define SPparam_number SPnamed_dvariable
95
#define SPparam_3array SPnamed_dvar3_array
96
#define SPparam_4array SPnamed_dvar4_array
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff