ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
named_dvector Class Reference

Description not yet available. More...

#include <admodel.h>

Public Member Functions

 named_dvector (void)
 
void allocate (int mmin, int mmax, const char *s)
 
void allocate (const char *s)
 
void allocate (int mmin, const ivector &mmax, const char *s)
 
named_dvectoroperator= (const dvector &m)
 
named_dvectoroperator= (const double m)
 
- Public Member Functions inherited from dvector
 dvector (const predvector &pd)
 Creates a dvector from an instance of class predvector. More...
 
 dvector (const dvar_vector_position &dvp, const kkludge_object &)
 Construct a dvector object from a dvar_vector_position object. More...
 
 dvector (const ad_integer &, const index_type &)
 Description not yet available. More...
 
 dvector ()
 Construct a dvector without allocating memory. More...
 
 dvector (const dvector &)
 Copy constructor. More...
 
 dvector (const ivector &)
 Description not yet available. More...
 
 dvector (const lvector &)
 Construct dvector with values in lvector. More...
 
 dvector (const char *)
 Construct dvector from s. More...
 
 dvector (int ncl, int ncu)
 Construct a dvector with specified range of valid subscript. More...
 
 dvector (unsigned int sz, double *x)
 Construct a dvector object from a C style array of doubles. More...
 
 dvector (char *filename, const int &column)
 Construct dvector using matrix input from text filename. More...
 
 ~dvector ()
 Default destructor. More...
 
const double * address () const
 
void allocate (int ncl, int ncu)
 Allocate memory for a dvector. More...
 
void allocate (const dvector &dv)
 Allocate memory for a dvector the same size as it's argument. More...
 
void allocate (const dvar_vector &)
 Allocate memory for a dvector the same size as it's argument. More...
 
void allocate (const char *)
 Allocate dvector from s. More...
 
void allocate (void)
 Allocate dvector without allocating memory. More...
 
void allocate (const ad_integer &, const index_type &)
 Allocate vector of reals with dimension [_ncl to _nch]. More...
 
void allocatec (const dvector &dv)
 Make shallow copy of dvector shape. More...
 
int allocated (void) const
 Returns 1 (TRUE) if memory is allocated. More...
 
double * begin () const
 
void deallocate (void)
 Called by destructor to deallocate memory for a dvector object. More...
 
double & elem (int i)
 
const double & elem (int i) const
 
double * end () const
 
void fill (const char *s)
 Fill vectors from values in string s. More...
 
void fill_multinomial (const int &seed, const dvector &p)
 Description not yet available. More...
 
void fill_multinomial (const random_number_generator &rng, const dvector &p)
 Description not yet available. More...
 
void fill_randbi (long int &n, double)
 Fill vector with binary random numbers. More...
 
void fill_randbi (double p, const random_number_generator &rng)
 Description not yet available. More...
 
void fill_randbi_ni (long int &n, double)
 Description not yet available. More...
 
void fill_randcau (const random_number_generator &rng)
 Description not yet available. More...
 
void fill_randn (long int &n)
 Fill vector with random numbers. More...
 
void fill_randn (const random_number_generator &rng)
 Description not yet available. More...
 
void fill_randn_ni (long int &n)
 Description not yet available. More...
 
void fill_randnegbinomial (double lambda, double tau, const random_number_generator &rng)
 Description not yet available. More...
 
void fill_randpoisson (double lambda, const random_number_generator &rng)
 Fill vector with Poisson pseudorandom numbers. More...
 
void fill_randu (long int &n)
 Fill vector with random numbers. More...
 
void fill_randu (const random_number_generator &rng)
 Description not yet available. More...
 
void fill_randu_ni (long int &n)
 Description not yet available. More...
 
void fill_seqadd (double, double)
 Fills dvector elements with values starting from base and incremented by offset. More...
 
unsigned int get_ncopies () const
 
double *& get_v (void)
 
double * get_v (void) const
 
int indexmax () const
 Get maximum valid index. More...
 
int indexmin () const
 Get minimum valid index. More...
 
void initialize (void)
 Initialze all elements of dvector to zero. More...
 
double * initpointer (void)
 
const double * initpointer (void) const
 
bool is_valid_index (const int i) const
 Check index i is in dvector bounds [index_min, index_max]. More...
 
int operator! (void) const
 Returns 1 (TRUE) if memory is NOT allocated. More...
 
dvector operator() (int lb, int ub)
 Get subvector. More...
 
dvector operator() (const lvector &)
 Description not yet available. More...
 
dvector operator() (const ivector &u)
 Description not yet available. More...
 
double & operator() (int i)
 
const double & operator() (int i) const
 
dvectoroperator*= (double v1)
 Multiply elements of a vector by a constant. More...
 
dvectoroperator++ (void)
 Increment vector indices array pointer. More...
 
dvectoroperator+= (const dvector &v1)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvectoroperator+= (double v1)
 Add value to each element of dvector. More...
 
dvector operator- ()
 Description not yet available. More...
 
dvectoroperator-- (void)
 Decrement vector indices array pointer. More...
 
dvectoroperator-= (const dvector &v1)
 Subtract values from dvector element-wise. More...
 
dvectoroperator-= (double v1)
 Subtract value to each element of dvector. More...
 
dvectoroperator/= (double v1)
 Divide elements of a vector by a constant. More...
 
dvectoroperator= (const dvector &t)
 Assignment operator for dvector argument. More...
 
dvectoroperator= (double x)
 Assignment operator for double argument. More...
 
double & operator[] (int i)
 
const double & operator[] (int i) const
 
istream & parse (istream &input_json)
 
void read_from (const uistream &)
 Description not yet available. More...
 
void read_from (const istream &)
 Description not yet available. More...
 
void reallocate (double size)
 Reallocate size of array. More...
 
void safe_allocate (int, int)
 Safely allocate memory for a dvector. More...
 
void safe_deallocate (void)
 Safely deallocates memory by reporting if shallow copies are still in scope. More...
 
void save_dvector_derivatives (const dvar_vector_position &pos) const
 Puts the derivative values in a dvector into a dvar_vector's guts. More...
 
void save_dvector_derivatives (void) const
 
void save_dvector_derivatives_na (const dvar_vector_position &pos) const
 Description not yet available. More...
 
void save_dvector_position () const
 Description not yet available. More...
 
void save_dvector_value () const
 Saves the size, address, and value information for a dvector. More...
 
void shallow_copy (const dvector &)
 Explicit shallow copy. More...
 
dvectorshift (int min)
 Shift valid range of subscripts. More...
 
unsigned int size () const
 Get number of elements in array. More...
 
dvector sub (int lb, int ub)
 Get subvector. More...
 
void write_on (const ostream &) const
 Description not yet available. More...
 
void write_on (const uostream &) const
 Description not yet available. More...
 
- Public Member Functions inherited from model_name_tag
 model_name_tag (void)
 
void allocate (const char *s)
 
const char * get_name (void)
 
label_class label (void)
 

Additional Inherited Members

- Protected Attributes inherited from dvector
int index_max
 maximum valid subscript More...
 
int index_min
 minimum valid subscript More...
 
vector_shapexshape
 pointer to vector "shape" More...
 
double * v
 pointer to the data More...
 
- Protected Attributes inherited from model_name_tag
adstring name
 

Detailed Description

Description not yet available.

Parameters

Definition at line 461 of file admodel.h.

Constructor & Destructor Documentation

named_dvector::named_dvector ( void  )
inline

Definition at line 464 of file admodel.h.

Member Function Documentation

void named_dvector::allocate ( int  mmin,
int  mmax,
const char *  s 
)

Definition at line 588 of file model.cpp.

void named_dvector::allocate ( const char *  s)

Definition at line 594 of file model.cpp.

void named_dvector::allocate ( int  mmin,
const ivector mmax,
const char *  s 
)
named_dvector & named_dvector::operator= ( const dvector m)

Definition at line 175 of file model11.cpp.

named_dvector & named_dvector::operator= ( const double  m)

Definition at line 180 of file model11.cpp.


The documentation for this class was generated from the following files: