ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
param_init_bounded_number_matrix.h
Go to the documentation of this file.
1 
39 #ifndef __param_init_bounded_number_matrix_h__
40 #define __param_init_bounded_number_matrix_h__
41 #include "admodel.h"
42 
47 {
48 public:
52 
53 public:
54  void allocate(int rowmin, int rowmax,
55  int colmin, int colmax,
56  const dmatrix& bmin, const dmatrix& bmax,
57  const char* s);
58 
59  void allocate(int rowmin, int rowmax,
60  int colmin, int colmax,
61  const dmatrix& bmin, const dmatrix& bmax,
62  const imatrix& phase_start,
63  const char* s);
64 
65  void set_scalefactor(const double scalefactor);
66  void set_scalefactor(const dmatrix& scalefactor);
67  dmatrix get_scalefactor() const;
68 
69  param_init_bounded_number_vector& operator[](const int i) const;
70  param_init_bounded_number_vector& operator()(const int i) const;
71  param_init_bounded_number& operator()(const int i, const int j) const;
72 
74  bool allocated() const { return v != NULL; }
75 
77  int indexmin() const { return index_min; }
78 
80  int indexmax() const { return index_max; }
81 
82 private:
83 
85  void deallocate();
86 
87 private:
89  int index_min;
90  int index_max;
91 /*
92  void set_initial_value(const double_index_type& it);
93 
94  double_index_type* it;
95 */
96 };
97 #endif
Description not yet available.
Definition: imatrix.h:69
param_init_bounded_number_vector & operator()(const int i) const
Returns param_init_bounded_vector for index i.
bool allocated() const
Returns true is allocated, otherwise false.
void set_scalefactor(const double scalefactor)
Set scalefactor for each element of param_init_bounded_number_matrix.
void allocate(int rowmin, int rowmax, int colmin, int colmax, const dmatrix &bmin, const dmatrix &bmax, const char *s)
Allocate matrix of param_init_bounded numbers with dimension [rowmin to rowmax] x [colmin to colmax] ...
Description not yet available.
Definition: admodel.h:1228
int indexmin() const
Returns lower row index.
Description not yet available.
param_init_bounded_number_vector * v
Description not yet available.
Definition: fvar.hpp:2819
dmatrix get_scalefactor() const
Returns matrix with scalefactors for each element in param_init_bounded_number_matrix.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Class object for init_bounded_number vector.
Definition: admodel.h:2915
int indexmax() const
Returns upper row index.
param_init_bounded_number_vector & operator[](const int i) const
Returns param_init_bounded_vector for index i.