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

Description not yet available. More...

#include <fvar.hpp>

Public Member Functions

 dvector_index (const dvector &v)
 Description not yet available. More...
 
virtual ~dvector_index ()
 Destructor. More...
 
virtual int indexmax (void)
 
virtual int indexmin (void)
 
- 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 double_index_guts
 double_index_guts ()
 Description not yet available. More...
 
 double_index_guts (const double_index_guts &ig)
 Description not yet available. More...
 
virtual ~double_index_guts ()
 Description not yet available. More...
 
virtual int isdouble (void) const
 
virtual operator double ()
 

Private Member Functions

virtual double_index_gutsoperator[] (int i)
 

Friends

class double_index_type
 

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 double_index_guts
int * ncopies
 

Detailed Description

Description not yet available.

Parameters

Definition at line 8636 of file fvar.hpp.

Constructor & Destructor Documentation

dvector_index::dvector_index ( const dvector v)

Description not yet available.

Parameters

Definition at line 190 of file doublind.cpp.

dvector_index::~dvector_index ( )
virtual

Destructor.

Definition at line 144 of file doublind.cpp.

Member Function Documentation

virtual int dvector_index::indexmax ( void  )
inlinevirtual

Implements double_index_guts.

Definition at line 8650 of file fvar.hpp.

virtual int dvector_index::indexmin ( void  )
inlinevirtual

Implements double_index_guts.

Definition at line 8646 of file fvar.hpp.

virtual double_index_guts* dvector_index::operator[] ( int  i)
inlineprivatevirtual

Implements double_index_guts.

Definition at line 8638 of file fvar.hpp.

Friends And Related Function Documentation

friend class double_index_type
friend

Definition at line 8654 of file fvar.hpp.


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