Revision 1110 trunk/src/df1b2-separable/df3fun.h

df3fun.h (revision 1110)
3 3
 *
4 4
 * Author: David Fournier
5 5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 * 
6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "BSD" license.
9 9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
......
87 87
    df3_one_vector(void);
88 88
    void allocate(void);
89 89
    void allocate(int min,int max);
90
    df3_one_variable& operator () (int i) const 
91
    { 
90
    df3_one_variable& operator () (int i) const
91
    {
92 92
      return (df3_one_variable&) (*(v+i));
93 93
    }
94
    df3_one_variable& operator [] (int i) const 
95
    { 
94
    df3_one_variable& operator [] (int i) const
95
    {
96 96
      return (df3_one_variable&) (*(v+i));
97 97
    }
98 98
    void initialize(void);
......
101 101
    df3_one_vector(const df3_one_vector& m2);
102 102
  };
103 103

  
104

  
105

  
106 104
 dvector value(const df3_one_vector& v);
107
   
105

  
108 106
 dvector first_derivatives(const df3_one_vector& v);
109 107

  
110 108
 dvector second_derivatives(const df3_one_vector& v);
111
   
109

  
112 110
 dvector third_derivatives(const df3_one_vector& v);
113
    
111

  
114 112
  class df3_one_matrix
115 113
  {
116 114
    int index_min;
......
121 119
    int indexmin(void) const { return int(index_min); }
122 120
    int indexmax(void) const { return int(index_max); }
123 121
    df3_one_matrix(int rmin,int rmax,int cmin,int cmax);
124
    df3_one_vector& operator () (int i) const 
125
    { 
126
      return (df3_one_vector&) *(v+i); 
122
    df3_one_vector& operator () (int i) const
123
    {
124
      return (df3_one_vector&) *(v+i);
127 125
    }
128
    df3_one_vector& operator [] (int i) const 
129
    { 
130
      return (df3_one_vector&) *(v+i); 
126
    df3_one_vector& operator [] (int i) const
127
    {
128
      return (df3_one_vector&) *(v+i);
131 129
    }
132
    df3_one_variable& operator () (int i,int j) const 
133
    { 
134
      return (df3_one_variable&) (*(v+i))(j); 
130
    df3_one_variable& operator () (int i,int j) const
131
    {
132
      return (df3_one_variable&) (*(v+i))(j);
135 133
    }
136 134
    void initialize(void);
137 135
    //df3_one_variable& operator () (int i,int j) const { return *((v+i)->(v+j)); }
......
141 139
  };
142 140

  
143 141
 dmatrix value(const df3_one_matrix& v);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff