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

Description not yet available. More...

#include <fvar.hpp>

Public Member Functions

 lvector (const lvector &)
 Copy constructor. More...
 
 lvector (const dvector &)
 Description not yet available. More...
 
 lvector (const ivector &)
 Description not yet available. More...
 
 lvector (void)
 Default constructor. More...
 
 lvector (int ncl, int ncu)
 Constructor to allocate vector of AD_LONG_INT. More...
 
 lvector (unsigned int sz, AD_LONG_INT *x)
 Description not yet available. More...
 
 ~lvector ()
 Destructor. More...
 
void allocate (int ncl, int ncu)
 Allocate vector of AD_LONG_INT. More...
 
void allocate (const lvector &)
 Description not yet available. More...
 
void allocate (void)
 Does not really allocate, but empties the array. More...
 
AD_LONG_INTelem (int i)
 
const AD_LONG_INTelem (int i) const
 
void fill (const char *s)
 Description not yet available. 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_seqadd (const AD_LONG_INT &, const AD_LONG_INT &)
 Fills ivector elements with values starting from base and incremented by offset. More...
 
int indexmax () const
 
int indexmin () const
 
void initialize (void)
 Intialize vector values to zero. More...
 
 operator AD_LONG_INT * ()
 
int operator! (void) const
 
AD_LONG_INToperator() (int i)
 
const AD_LONG_INToperator() (int i) const
 
lvector operator() (const ivector &indexes)
 Returns a selected vector of values from lvector using positions in indexes. More...
 
lvectoroperator= (const lvector &t)
 Description not yet available. More...
 
AD_LONG_INToperator[] (int i)
 
const AD_LONG_INToperator[] (int i) const
 
void read_from (const istream &s)
 Description not yet available. More...
 
void read_from (const uistream &s)
 Description not yet available. More...
 
lvectorshift (int min)
 Shift current dimensions of lvector using to_indexmin as the new lower index value. More...
 
int size () const
 
void write_on (const ostream &s) const
 Description not yet available. More...
 
void write_on (const uostream &s) const
 Description not yet available. More...
 

Private Attributes

vector_shapeshape
 
AD_LONG_INTv
 

Friends

class lmatrix
 

Detailed Description

Description not yet available.

Parameters

Definition at line 656 of file fvar.hpp.

Constructor & Destructor Documentation

lvector::lvector ( const lvector t)

Copy constructor.

Definition at line 37 of file lvector.cpp.

lvector::lvector ( const dvector u)

Description not yet available.

Parameters

Definition at line 71 of file lvector.cpp.

lvector::lvector ( const ivector u)

Description not yet available.

Parameters

Definition at line 195 of file lvector.cpp.

lvector::lvector ( void  )

Default constructor.

Definition at line 30 of file lvector.cpp.

Referenced by fill().

lvector::lvector ( int  ncl,
int  nch 
)

Constructor to allocate vector of AD_LONG_INT.

Parameters
ncllower index
nchhigh index

Definition at line 187 of file lvector.cpp.

lvector::lvector ( unsigned int  sz,
AD_LONG_INT x 
)

Description not yet available.

Parameters

Definition at line 121 of file lvector.cpp.

lvector::~lvector ( )

Destructor.

Definition at line 46 of file lvector.cpp.

Member Function Documentation

void lvector::allocate ( int  ncl,
int  nch 
)

Allocate vector of AD_LONG_INT.

Parameters
ncllower index
nchhigh index

Definition at line 156 of file lvector.cpp.

Referenced by lmatrix::allocate(), and lmatrix::lmatrix().

void lvector::allocate ( const lvector lv)

Description not yet available.

Parameters

Definition at line 146 of file lvector.cpp.

void lvector::allocate ( void  )

Does not really allocate, but empties the array.

Definition at line 176 of file lvector.cpp.

Referenced by allocate(), and lvector().

AD_LONG_INT& lvector::elem ( int  i)
inline

Definition at line 667 of file fvar.hpp.

Referenced by dvector::dvector(), fill_seqadd(), lvector(), and operator=().

const AD_LONG_INT& lvector::elem ( int  i) const
inline

Definition at line 671 of file fvar.hpp.

void lvector::fill ( const char *  s)

Description not yet available.

Parameters

Definition at line 28 of file ivec4.cpp.

void lvector::fill_multinomial ( const int &  seed,
const dvector p 
)

Description not yet available.

Parameters

Definition at line 83 of file dvect11.cpp.

void lvector::fill_multinomial ( const random_number_generator rng,
const dvector p 
)

Description not yet available.

Parameters

Definition at line 87 of file dvect25.cpp.

void lvector::fill_seqadd ( const AD_LONG_INT base,
const AD_LONG_INT offset 
)

Fills ivector elements with values starting from base and incremented by offset.

Parameters
baseinitial value
offsetincremental value

Definition at line 88 of file cranfill.cpp.

int lvector::indexmax ( void  ) const
inline
int lvector::indexmin ( void  ) const
inline
void lvector::initialize ( void  )

Intialize vector values to zero.

Definition at line 216 of file lvector.cpp.

Referenced by allocate(), and dependent_variables_information::dependent_variables_information().

lvector::operator AD_LONG_INT * ( )
int lvector::operator! ( void  ) const
inline

Definition at line 662 of file fvar.hpp.

AD_LONG_INT & lvector::operator() ( int  i)
inline

Definition at line 746 of file fvar.hpp.

Referenced by operator()().

const AD_LONG_INT & lvector::operator() ( int  i) const
inline

Definition at line 754 of file fvar.hpp.

lvector lvector::operator() ( const ivector indexes)

Returns a selected vector of values from lvector using positions in indexes.

Note: Assumes positions are in range [indexmin() to indexmax()].

Parameters
indexescontains vector of valid index values

Definition at line 32 of file ivec3.cpp.

lvector & lvector::operator= ( const lvector t)

Description not yet available.

Parameters

Definition at line 99 of file lvector.cpp.

AD_LONG_INT & lvector::operator[] ( int  i)
inline

Definition at line 742 of file fvar.hpp.

const AD_LONG_INT & lvector::operator[] ( int  i) const
inline

Definition at line 750 of file fvar.hpp.

void lvector::read_from ( const istream &  _s)

Description not yet available.

Parameters

Definition at line 109 of file lvect_io.cpp.

void lvector::read_from ( const uistream _s)

Description not yet available.

Parameters

Definition at line 57 of file lvec_io1.cpp.

lvector & lvector::shift ( int  to_indexmin)

Shift current dimensions of lvector using to_indexmin as the new lower index value.

ie [1 to 5] shift to_indexmin 2 will change to [2 to 5]

Note: Size and data are unchanged.

Parameters
to_indexminlower index changed to

Definition at line 37 of file ivec.cpp.

int lvector::size ( ) const
inline

Definition at line 686 of file fvar.hpp.

Referenced by initialize(), and lvector().

void lvector::write_on ( const ostream &  _s) const

Description not yet available.

Parameters

Definition at line 48 of file lvect_io.cpp.

Referenced by operator<<().

void lvector::write_on ( const uostream _s) const

Description not yet available.

Parameters

Definition at line 85 of file lvec_io1.cpp.

Friends And Related Function Documentation

friend class lmatrix
friend

Definition at line 738 of file fvar.hpp.

Member Data Documentation

vector_shape* lvector::shape
private

Definition at line 659 of file fvar.hpp.

Referenced by allocate(), indexmax(), indexmin(), lvector(), operator!(), shift(), size(), and ~lvector().

AD_LONG_INT* lvector::v
private

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