ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
df1b2-separable
f1b2vc7.cpp
Go to the documentation of this file.
1
/*
2
* $Id$
3
*
4
* Author: David Fournier
5
* Copyright (c) 2008-2012 Regents of the University of California
6
*/
11
#include <
df1b2fun.h
>
12
17
df1b2vector
&
df1b2vector::shift
(
int
min
)
18
{
19
v
+=
indexmin
()-
min
;
20
index_max
=
index_max
-
index_min
+
min
;
21
index_min
=
min
;
22
//shape->shift(min);
23
return
*
this
;
24
}
25
26
/*
27
df1b2vector::df1b2vector(const predf1b2vector& pdv)
28
{
29
#ifndef OPT_LIB
30
if (pdv.ub<pdv.lb)
31
{
32
cerr << "lower index greater than upper index in df1b2vector::"
33
" dvar-vector(const predf1b2vector&) " << endl;
34
ad_exit (1);
35
}
36
if ((pdv.lb<pdv.p->indexmin()) || (pdv.lb>pdv.p->indexmax()))
37
{
38
cerr << "lower index out of bounds in df1b2vector::"
39
" operator(int lb,int ub) " << endl;
40
ad_exit (1);
41
}
42
43
if ((pdv.ub<pdv.p->indexmin()) || (pdv.ub>pdv.p->indexmax()))
44
{
45
cerr << " upper index out of bounds in df1b2vector::"
46
" operator(int lb,int ub) " << endl;
47
ad_exit (1);
48
}
49
#endif
50
index_min=pdv.lb;
51
index_max=pdv.ub;
52
shape=pdv.p->shape;
53
(shape->ncopies)++;
54
v = pdv.p->v;
55
}
56
*/
df1b2vector
Description not yet available.
Definition:
df1b2fun.h:953
df1b2vector::indexmin
int indexmin(void) const
Definition:
df1b2fun.h:969
df1b2vector_header::index_max
int index_max
Definition:
df1b2fun.h:933
df1b2vector::shift
df1b2vector & shift(int)
Description not yet available.
Definition:
f1b2vc7.cpp:17
min
#define min(a, b)
Definition:
cbivnorm.cpp:188
df1b2fun.h
Description not yet available.
df1b2vector::v
df1b2variable * v
Definition:
df1b2fun.h:955
df1b2vector_header::index_min
int index_min
Definition:
df1b2fun.h:932
Generated on Wed Sep 7 2022 00:01:27 for ADMB Documentation by
1.8.5