ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ivec.cpp
Go to the documentation of this file.
1 
5 #include <fvar.hpp>
6 
17 ivector& ivector::shift(int to_indexmin)
18 {
19  v += indexmin() - to_indexmin;
20 
21  shape->shift(to_indexmin);
24 
25  return *this;
26 }
37 lvector& lvector::shift(int to_indexmin)
38 {
39  v += indexmin() - to_indexmin;
40 
41  shape->shift(to_indexmin);
42 
43  return *this;
44 }
AD_LONG_INT * v
Definition: fvar.hpp:658
void shift(int min)
Description not yet available.
Definition: shape.cpp:23
int indexmin() const
Definition: fvar.hpp:676
Description not yet available.
Definition: fvar.hpp:656
lvector & shift(int min)
Shift current dimensions of lvector using to_indexmin as the new lower index value.
Definition: ivec.cpp:37
vector_shape * shape
Definition: fvar.hpp:659
Array of integers(int) with indexes from index_min to indexmax.
Definition: ivector.h:50
vector_shapex * shape
Definition: ivector.h:56
int index_max
Definition: ivector.h:54
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmin() const
Definition: ivector.h:99
int index_min
Minimum valid subscript.
Definition: vector_shapex.h:70
int index_max
Maximum valid subscript.
Definition: vector_shapex.h:71
ivector & shift(int min)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: ivec.cpp:17
void shift(int min)
Description not yet available.
Definition: shape.cpp:33
int * v
Definition: ivector.h:55
int index_min
Definition: ivector.h:53