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

ADMB variable vector. More...

#include <fvar.hpp>

Public Member Functions

 dvar_vector (const dvar_vector &)
 Copy constructor. More...
 
 dvar_vector (const predvar_vector &)
 Description not yet available. More...
 
 dvar_vector ()
 Default constructor. More...
 
 dvar_vector (int ncl, int ncu)
 Description not yet available. More...
 
 dvar_vector (int ncl, int ncu, kkludge_object)
 Description not yet available. More...
 
 dvar_vector (unsigned int sz, double *x)
 Description not yet available. More...
 
 dvar_vector (const independent_variables &)
 Description not yet available. More...
 
 dvar_vector (const param_init_number_vector &)
 Description not yet available. More...
 
 dvar_vector (const param_init_bounded_number_vector &)
 Description not yet available. More...
 
 dvar_vector (const dvector &)
 Description not yet available. More...
 
 dvar_vector (const char *)
 
 ~dvar_vector ()
 Destructor. More...
 
void allocate (int, int)
 Allocate dvar_vector with indexmin = ncl and indexmax = nch. More...
 
void allocate (void)
 Does not allocate, but initializes dvar_vector to empty. More...
 
void allocate (const dvector &)
 Allocate dvar_vector using indexes from v1. More...
 
void allocate (const dvar_vector &)
 Allocate dvar_vector using indexes from v1. More...
 
void allocate (const ad_integer &, const ad_integer &)
 Description not yet available. More...
 
void allocatec (const dvar_vector &)
 Description not yet available. More...
 
void deallocate ()
 Deallocate dvar_vector memory. More...
 
prevariable elem (int i)
 
prevariable elem (int i) const
 
double & elem_value (int i)
 
double & elem_value (int i) const
 
void fill (const char *)
 Fill variable vector 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)
 Description not yet available. More...
 
void fill_randbi_ni (long int &n, double)
 Description not yet available. More...
 
void fill_randn (long int &n)
 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)
 Description not yet available. More...
 
void fill_randu (long int &n)
 Description not yet available. More...
 
void fill_randu_ni (long int &n)
 Description not yet available. More...
 
void fill_seqadd (double, double)
 Description not yet available. More...
 
unsigned int get_ncopies () const
 
double_and_intget_va ()
 
double_and_intget_va () const
 
int indexmax () const
 
int indexmin () const
 
void initialize (const dvector &ww)
 Description not yet available. More...
 
void initialize (void)
 Description not yet available. More...
 
double * initpointer (void)
 
const double * initpointer (void) const
 
int operator! (void) const
 
dvar_vector operator() (int lb, int ub)
 
prevariable operator() (int i)
 
const prevariable operator() (int i) const
 
dvar_vector operator() (const lvector &)
 Description not yet available. More...
 
dvar_vector operator() (const ivector &u)
 Description not yet available. More...
 
dvar_vectoroperator*= (const prevariable &d)
 Description not yet available. More...
 
dvar_vectoroperator*= (double d)
 Description not yet available. More...
 
dvar_vectoroperator++ (void)
 
dvar_vectoroperator+= (const prevariable &d)
 Adds d to each element of dvar_vector. More...
 
dvar_vectoroperator+= (double d)
 Adds d to each element of dvar_vector. More...
 
dvar_vectoroperator+= (const dvector &v1)
 Description not yet available. More...
 
dvar_vectoroperator+= (const dvar_vector &v1)
 Description not yet available. More...
 
dvar_vector operator- ()
 Description not yet available. More...
 
dvar_vectoroperator-- (void)
 
dvar_vectoroperator-= (const prevariable &d)
 Substracts d from each element of dvar_vector. More...
 
dvar_vectoroperator-= (double d)
 Substracts d from each element of dvar_vector. More...
 
dvar_vectoroperator-= (const dvector &v1)
 Description not yet available. More...
 
dvar_vectoroperator-= (const dvar_vector &v1)
 Description not yet available. More...
 
dvar_vectoroperator/= (const prevariable &d)
 Description not yet available. More...
 
dvar_vectoroperator/= (double d)
 Description not yet available. More...
 
dvar_vectoroperator= (const dvar_vector &t)
 Assign values from other t to dvar_vector. More...
 
dvar_vectoroperator= (const dvector &t)
 Description not yet available. More...
 
dvar_vectoroperator= (double t)
 Assigns all elements for dvar_vector with t. More...
 
dvar_vectoroperator= (const prevariable &t)
 Assigns all elements for dvar_vector with t. More...
 
prevariable operator[] (int i)
 
const prevariable operator[] (int i) const
 
void read_from (const istream &)
 Description not yet available. More...
 
void read_from (const uistream &)
 Description not yet available. More...
 
void save_dvar_vector_position () const
 Description not yet available. More...
 
void save_dvar_vector_value () const
 Saves the size, address, and value information for a dvar_vector. More...
 
void shallow_copy (const dvar_vector &)
 Shallow copy other data structure pointers. More...
 
dvar_vectorshift (int min)
 Description not yet available. More...
 
unsigned int size () const
 
dvar_vector sub (int lb, int ub)
 
void write_on (const ostream &) const
 Description not yet available. More...
 
void write_on (const uostream &) const
 Description not yet available. More...
 

Public Attributes

int index_max
 
int index_min
 
arr_linklink_ptr
 
vector_shapexshape
 
double_and_intva
 

Friends

class array_size
 
class banded_lower_triangular_dmatrix
 
class banded_lower_triangular_dvar_matrix
 
class banded_symmetric_dmatrix
 
class banded_symmetric_dvar_matrix
 
void copy_status (const ostream &s, const dvar_vector &v)
 Description not yet available. More...
 
class dvar3_array
 
class dvar_matrix
 
dvar_vector elem_div (const dvar_vector &, const dvar_vector &)
 Element-wise division of v1 by v2 into a dvar_vector. More...
 
dvar_vector elem_div (const dvector &, const dvar_vector &)
 Element-wise division of v1 by v2 into a dvar_vector. More...
 
dvar_vector elem_div (const dvar_vector &, const dvector &)
 Element-wise division of v1 by v2 into a dvar_vector. More...
 
dvar_vector elem_prod (const dvar_vector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector elem_prod (const dvector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector elem_prod (const dvar_vector &, const dvector &)
 Description not yet available. More...
 
dvar_vector exp (const dvar_vector &)
 Description not yet available. More...
 
dvar_vector fabs (const dvar_vector &)
 Description not yet available. More...
 
char * fform (const char *, const dvar_vector &)
 
dvar_vector first_difference (const dvar_vector &)
 Returns a dvector containing the differences of an x(i) and x(i + 1) for i = 1 to x.indexmax() - 1. More...
 
dvar_vector log (const dvar_vector &)
 Description not yet available. More...
 
void make_indvar_list (const dvar_vector &)
 Description not yet available. More...
 
dvariable norm (const dvar_vector &)
 Description not yet available. More...
 
dvariable norm2 (const dvar_vector &)
 Description not yet available. More...
 
dvar_matrix operator* (const dvar_matrix &m1, const dmatrix &m2)
 Description not yet available. More...
 
dvariable operator* (const dvar_vector &, const dvar_vector &)
 Compute the dot product of two variable type vectors. More...
 
dvariable operator* (const dvector &, const dvar_vector &)
 Description not yet available. More...
 
dvariable operator* (const dvar_vector &, const dvector &)
 Description not yet available. More...
 
dvar_vector operator* (const prevariable &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator* (const prevariable &, const dvector &)
 Description not yet available. More...
 
dvar_vector operator* (double, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator* (const dvar_vector &, const dmatrix &)
 Description not yet available. More...
 
dvar_vector operator* (const dmatrix &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator* (const dvar_vector &, const dvar_matrix &)
 Description not yet available. More...
 
dvar_vector operator* (const dvar_matrix &, const dvar_vector &)
 Description not yet available. More...
 
dvar_matrix operator* (const dvar_matrix &, const dvar_matrix &)
 Description not yet available. More...
 
dvar_matrix operator* (const dmatrix &, const dvar_matrix &)
 Description not yet available. More...
 
dvar_vector operator+ (const dvar_vector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator+ (const dvar_vector &, const dvector &)
 Description not yet available. More...
 
dvar_vector operator+ (const dvector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator- (const dvar_vector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator- (const dvector &, const dvar_vector &)
 Description not yet available. More...
 
dvar_vector operator- (const dvar_vector &, const dvector &)
 Description not yet available. More...
 
dvar_vector second_difference (const dvar_vector &)
 
dvar_vector sfabs (const dvar_vector &)
 Description not yet available. More...
 
dvar_vector sigmoid (const dvar_vector &t1)
 
dvar_vector sin (const dvar_vector &)
 Computes sin of each element in v1 to a dvar_vector. More...
 
dvariable sumsq (const dvar_vector &)
 
dvector value (const dvar_vector &v1)
 Description not yet available. More...
 

Detailed Description

ADMB variable vector.

Definition at line 2172 of file fvar.hpp.

Constructor & Destructor Documentation

dvar_vector::dvar_vector ( const dvar_vector other)

Copy constructor.

Definition at line 45 of file fvar_ar1.cpp.

dvar_vector::dvar_vector ( const predvar_vector pdv)

Description not yet available.

Parameters

Definition at line 85 of file fvar_ar1.cpp.

dvar_vector::dvar_vector ( )
dvar_vector::dvar_vector ( int  ncl,
int  nch 
)

Description not yet available.

Parameters

Definition at line 113 of file fvar_arr.cpp.

dvar_vector::dvar_vector ( int  ncl,
int  nch,
kkludge_object  kg 
)

Description not yet available.

Parameters

Definition at line 23 of file fvar_a13.cpp.

dvar_vector::dvar_vector ( unsigned int  sz,
double *  x 
)

Description not yet available.

Parameters

Definition at line 97 of file fvar_arr.cpp.

dvar_vector::dvar_vector ( const independent_variables t)

Description not yet available.

Parameters

Definition at line 41 of file fvar_arr.cpp.

dvar_vector::dvar_vector ( const param_init_number_vector _t)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a61.cpp.

dvar_vector::dvar_vector ( const param_init_bounded_number_vector _t)

Description not yet available.

Parameters

Definition at line 34 of file fvar_a61.cpp.

dvar_vector::dvar_vector ( const dvector t)

Description not yet available.

Parameters

Definition at line 64 of file fvar_arr.cpp.

dvar_vector::dvar_vector ( const char *  s)
Todo:
Need Test case

Definition at line 54 of file fvar_io2.cpp.

dvar_vector::~dvar_vector ( )

Destructor.

Definition at line 10 of file fvar_ar1.cpp.

Member Function Documentation

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

Allocate dvar_vector with indexmin = ncl and indexmax = nch.

Definition at line 270 of file fvar_arr.cpp.

Referenced by dvar_matrix::allocate(), dvar_compressed_triplet::allocate(), dvar_matrix::dvar_matrix(), and vcubic_spline_function::vcubic_spline_function().

void dvar_vector::allocate ( void  )
void dvar_vector::allocate ( const dvector v1)

Allocate dvar_vector using indexes from v1.

Definition at line 227 of file fvar_arr.cpp.

void dvar_vector::allocate ( const dvar_vector v1)

Allocate dvar_vector using indexes from v1.

Definition at line 234 of file fvar_arr.cpp.

void dvar_vector::allocate ( const ad_integer ncl,
const ad_integer nch 
)

Description not yet available.

Parameters

Definition at line 322 of file fvar_arr.cpp.

void dvar_vector::allocatec ( const dvar_vector t)

Description not yet available.

Parameters

Definition at line 243 of file fvar_arr.cpp.

Referenced by operator=().

void dvar_vector::deallocate ( void  )

Deallocate dvar_vector memory.

Definition at line 15 of file fvar_ar1.cpp.

Referenced by dvar_compressed_triplet::deallocate(), operator=(), and ~dvar_vector().

prevariable dvar_vector::elem ( int  i)
inline
prevariable dvar_vector::elem ( int  i) const
inline

Definition at line 2236 of file fvar.hpp.

double& dvar_vector::elem_value ( int  i)
inline
double& dvar_vector::elem_value ( int  i) const
inline

Definition at line 2241 of file fvar.hpp.

void dvar_vector::fill ( const char *  s)

Fill variable vector from values in string s.

Parameters
sshould be in {v1, ..., vn} format.

Definition at line 52 of file fvar_a10.cpp.

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

Description not yet available.

Parameters

Definition at line 17 of file fvar_a47.cpp.

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

Description not yet available.

Parameters

Definition at line 17 of file fvar_a60.cpp.

void dvar_vector::fill_randbi ( long int &  n,
double  p 
)

Description not yet available.

Parameters

Definition at line 51 of file ranfill2.cpp.

void dvar_vector::fill_randbi_ni ( long int &  n,
double  p 
)

Description not yet available.

Parameters

Definition at line 33 of file ranf_ni2.cpp.

void dvar_vector::fill_randn ( long int &  n)

Description not yet available.

Parameters

Definition at line 118 of file ranfill2.cpp.

void dvar_vector::fill_randn_ni ( long int &  n)

Description not yet available.

Parameters

Definition at line 102 of file ranf_ni2.cpp.

Referenced by dvar_matrix::fill_randn(), dvar_matrix::fill_randn_ni(), and dvar_matrix::fill_randu().

void dvar_vector::fill_randnegbinomial ( double  lambda,
double  tau,
const random_number_generator rng 
)

Description not yet available.

Parameters

Definition at line 15 of file vrannegbin.cpp.

void dvar_vector::fill_randpoisson ( double  lambda,
const random_number_generator rng 
)

Description not yet available.

Parameters

Definition at line 17 of file franpois.cpp.

void dvar_vector::fill_randu ( long int &  n)

Description not yet available.

Parameters

Definition at line 32 of file ranfill2.cpp.

void dvar_vector::fill_randu_ni ( long int &  n)

Description not yet available.

Parameters

Definition at line 60 of file ranf_ni2.cpp.

Referenced by dvar_matrix::fill_randu_ni().

void dvar_vector::fill_seqadd ( double  base,
double  offset 
)

Description not yet available.

Parameters

Definition at line 33 of file ranfill1.cpp.

Referenced by dvar_matrix::fill_seqadd().

unsigned int dvar_vector::get_ncopies ( void  ) const
inline

Definition at line 2461 of file fvar.hpp.

double_and_int* dvar_vector::get_va ( )
inline
double_and_int* dvar_vector::get_va ( ) const
inline

Definition at line 2246 of file fvar.hpp.

int dvar_vector::indexmax ( void  ) const
inline

Definition at line 2292 of file fvar.hpp.

Referenced by acos(), param_init_vector::add_value(), param_init_bounded_vector::add_value(), ageLengthKey(), ALK(), factor::allocate(), dvector::allocate(), allocate(), asin(), atan(), boundp(), check_for_params_on_bounds(), column_vector(), copy_value_to_vector(), cos(), cosh(), cube(), param_init_vector::curv_scale(), param_init_bounded_vector::curv_scale(), dbinom(), dmultinom(), dnorm(), dvar_matrix_position::dvar_matrix_position(), dvar_vector(), elem_div(), elem_prod(), exp(), fabs(), factln(), fill(), fill_multinomial(), fill_randbi(), fill_randbi_ni(), fill_randn(), fill_randn_ni(), fill_randnegbinomial(), fill_randpoisson(), fill_randu(), fill_randu_ni(), fill_seqadd(), first_difference(), fourth(), gammln(), param_init_vector::get_jacobian(), param_init_bounded_vector::get_jacobian(), ghk(), ghk_choleski(), ghk_choleski_m(), ghk_choleski_m_cauchy(), ghk_choleski_m_logistic(), ghk_m(), initialize(), dvar_matrix::initialize(), inv_cumd_norm(), log(), log10(), log_comb(), lower_triangular_solve(), gradient_structure::make_indvar_list(), MAT(), max(), param_init_vector::mc_scale(), param_init_bounded_vector::mc_scale(), mfexp(), min(), operator&(), vcubic_spline_function::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator<<(), operator=(), cifstream::operator>>(), outer_prod(), posfun(), pow(), function_minimizer::random_effects_maximization(), read_from(), robust_regression(), row_vector(), DF_FILE::save_dvar_vector_value(), param_init_vector::save_value(), param_init_bounded_vector::save_value(), param_init_vector::sd_scale(), param_init_bounded_vector::sd_scale(), param_init_vector::sd_vscale(), param_init_bounded_vector::sd_vscale(), param_init_vector::set_simulation_bounds(), param_init_bounded_vector::set_simulation_bounds(), set_value(), set_value_inv(), set_value_inv_mc(), set_value_inv_partial(), set_value_partial(), sfabs(), sgn(), shape_check(), param_init_vector::shared_set_value(), param_init_d3array::shared_set_value(), param_init_d3array::shared_set_value_inv(), sin(), sinh(), sqrt(), square(), sum(), tan(), tanh(), use_shape(), value(), write_on(), dll_param_init_bounded_vector::~dll_param_init_bounded_vector(), dll_param_init_vector::~dll_param_init_vector(), and dll_param_vector::~dll_param_vector().

int dvar_vector::indexmin ( void  ) const
inline

Definition at line 2287 of file fvar.hpp.

Referenced by acos(), param_init_vector::add_value(), param_init_bounded_vector::add_value(), ageLengthKey(), ALK(), factor::allocate(), dvector::allocate(), allocate(), asin(), atan(), boundp(), check_for_params_on_bounds(), column_vector(), copy_value_to_vector(), cos(), cosh(), cube(), param_init_vector::curv_scale(), param_init_bounded_vector::curv_scale(), dbinom(), deallocate(), dmultinom(), dnorm(), dvar_matrix_position::dvar_matrix_position(), dvar_vector(), elem_div(), elem_prod(), exp(), fabs(), factln(), fill(), fill_multinomial(), fill_randbi(), fill_randbi_ni(), fill_randn(), fill_randn_ni(), fill_randnegbinomial(), fill_randpoisson(), fill_randu(), fill_randu_ni(), fill_seqadd(), first_difference(), fourth(), gammln(), param_init_vector::get_jacobian(), param_init_bounded_vector::get_jacobian(), initialize(), dvar_matrix::initialize(), initpointer(), inv_cumd_norm(), log(), log10(), log_comb(), lower_triangular_solve(), gradient_structure::make_indvar_list(), MAT(), max(), param_init_vector::mc_scale(), param_init_bounded_vector::mc_scale(), mfexp(), min(), operator&(), vcubic_spline_function::operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator<<(), operator=(), cifstream::operator>>(), outer_prod(), posfun(), pow(), function_minimizer::random_effects_maximization(), read_from(), robust_regression(), row_vector(), DF_FILE::save_dvar_vector_value(), param_init_vector::save_value(), param_init_bounded_vector::save_value(), param_init_vector::sd_scale(), param_init_bounded_vector::sd_scale(), param_init_vector::sd_vscale(), param_init_bounded_vector::sd_vscale(), param_init_vector::set_simulation_bounds(), param_init_bounded_vector::set_simulation_bounds(), set_value(), set_value_inv(), set_value_inv_mc(), set_value_inv_partial(), set_value_partial(), sfabs(), sgn(), shape_check(), param_init_vector::shared_set_value(), param_init_d3array::shared_set_value(), param_init_d3array::shared_set_value_inv(), shift(), sin(), sinh(), spline_cubic_val(), spline_cubic_val2(), sqrt(), square(), sum(), tan(), tanh(), use_shape(), value(), vector2matrix(), write_on(), dll_param_init_bounded_vector::~dll_param_init_bounded_vector(), dll_param_init_vector::~dll_param_init_vector(), and dll_param_vector::~dll_param_vector().

void dvar_vector::initialize ( const dvector ww)
void dvar_vector::initialize ( void  )

Description not yet available.

Parameters

Definition at line 17 of file fvar_a24.cpp.

Referenced by dvar_vector().

double* dvar_vector::initpointer ( void  )
inline

Definition at line 2347 of file fvar.hpp.

const double* dvar_vector::initpointer ( void  ) const
inline

Definition at line 2351 of file fvar.hpp.

int dvar_vector::operator! ( void  ) const
inline

Definition at line 2207 of file fvar.hpp.

dvar_vector dvar_vector::operator() ( int  lb,
int  ub 
)
inline

Definition at line 2202 of file fvar.hpp.

prevariable dvar_vector::operator() ( int  i)
inline

Definition at line 2323 of file fvar.hpp.

const prevariable dvar_vector::operator() ( int  i) const
inline

Definition at line 2331 of file fvar.hpp.

dvar_vector dvar_vector::operator() ( const lvector u)

Description not yet available.

Parameters

Definition at line 78 of file fvar_a32.cpp.

dvar_vector dvar_vector::operator() ( const ivector u)

Description not yet available.

Parameters

Definition at line 24 of file fvar_a32.cpp.

dvar_vector & dvar_vector::operator*= ( const prevariable x)

Description not yet available.

Parameters

Definition at line 30 of file fvar_a56.cpp.

dvar_vector & dvar_vector::operator*= ( double  d)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a56.cpp.

dvar_vector& dvar_vector::operator++ ( void  )
inline

Definition at line 2191 of file fvar.hpp.

dvar_vector & dvar_vector::operator+= ( const prevariable d)

Adds d to each element of dvar_vector.

Parameters
dprevariable

Definition at line 55 of file fvar_a30.cpp.

dvar_vector & dvar_vector::operator+= ( double  d)

Adds d to each element of dvar_vector.

Parameters
ddouble

Definition at line 106 of file fvar_a30.cpp.

dvar_vector & dvar_vector::operator+= ( const dvector v1)

Description not yet available.

Parameters

Definition at line 74 of file fvar_a25.cpp.

dvar_vector & dvar_vector::operator+= ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a25.cpp.

dvar_vector dvar_vector::operator- ( void  )

Description not yet available.

Parameters

Definition at line 19 of file fvar_a57.cpp.

dvar_vector& dvar_vector::operator-- ( void  )
inline

Definition at line 2184 of file fvar.hpp.

dvar_vector & dvar_vector::operator-= ( const prevariable d)

Substracts d from each element of dvar_vector.

Parameters
dprevariable

Definition at line 17 of file fvar_a30.cpp.

dvar_vector & dvar_vector::operator-= ( double  d)

Substracts d from each element of dvar_vector.

Parameters
ddouble

Definition at line 90 of file fvar_a30.cpp.

dvar_vector & dvar_vector::operator-= ( const dvector v1)

Description not yet available.

Parameters

Definition at line 66 of file fvar_a26.cpp.

dvar_vector & dvar_vector::operator-= ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a26.cpp.

dvar_vector & dvar_vector::operator/= ( const prevariable x)

Description not yet available.

Parameters

Definition at line 76 of file fvar_a48.cpp.

dvar_vector & dvar_vector::operator/= ( double  d)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a48.cpp.

dvar_vector & dvar_vector::operator= ( const dvar_vector t)
dvar_vector & dvar_vector::operator= ( const dvector t)

Description not yet available.

Parameters

Definition at line 23 of file fvar_a27.cpp.

dvar_vector & dvar_vector::operator= ( double  t)

Assigns all elements for dvar_vector with t.

Parameters
tsingle value

Definition at line 112 of file fvar_a20.cpp.

dvar_vector & dvar_vector::operator= ( const prevariable t)

Assigns all elements for dvar_vector with t.

Parameters
tprevariable

Definition at line 82 of file fvar_a20.cpp.

prevariable dvar_vector::operator[] ( int  i)
inline

Definition at line 2327 of file fvar.hpp.

const prevariable dvar_vector::operator[] ( int  i) const
inline

Definition at line 2335 of file fvar.hpp.

void dvar_vector::read_from ( const istream &  s)

Description not yet available.

Parameters

Definition at line 94 of file fvara_io.cpp.

void dvar_vector::read_from ( const uistream _s)

Description not yet available.

Parameters

Definition at line 51 of file fvarb_io.cpp.

void dvar_vector::save_dvar_vector_position ( ) const

Description not yet available.

Parameters

Definition at line 210 of file cmpdif3.cpp.

void dvar_vector::save_dvar_vector_value ( ) const

Saves the size, address, and value information for a dvar_vector.

Definition at line 102 of file cmpdif4.cpp.

void dvar_vector::shallow_copy ( const dvar_vector other)

Shallow copy other data structure pointers.

Parameters
otherdvar_vector

Definition at line 59 of file fvar_ar1.cpp.

Referenced by dvar_vector().

dvar_vector & dvar_vector::shift ( int  min)
unsigned int dvar_vector::size ( ) const
inline
dvar_vector dvar_vector::sub ( int  lb,
int  ub 
)
inline

Definition at line 2198 of file fvar.hpp.

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

Description not yet available.

Parameters

Definition at line 48 of file fvara_io.cpp.

Referenced by operator<<().

void dvar_vector::write_on ( const uostream _s) const

Description not yet available.

Parameters

Definition at line 81 of file fvarb_io.cpp.

Friends And Related Function Documentation

friend class array_size
friend

Definition at line 2459 of file fvar.hpp.

friend class banded_lower_triangular_dmatrix
friend

Definition at line 2216 of file fvar.hpp.

Definition at line 2214 of file fvar.hpp.

friend class banded_symmetric_dmatrix
friend

Definition at line 2215 of file fvar.hpp.

friend class banded_symmetric_dvar_matrix
friend

Definition at line 2213 of file fvar.hpp.

void copy_status ( const ostream &  s,
const dvar_vector v 
)
friend

Description not yet available.

Parameters

Definition at line 206 of file fvar_arr.cpp.

friend class dvar3_array
friend

Definition at line 2212 of file fvar.hpp.

friend class dvar_matrix
friend

Definition at line 2211 of file fvar.hpp.

dvar_vector elem_div ( const dvar_vector v1,
const dvar_vector v2 
)
friend

Element-wise division of v1 by v2 into a dvar_vector.

Parameters
v1dvar_vector of numerators
v2dvar_vector of denominators

Definition at line 29 of file fvar_a46.cpp.

dvar_vector elem_div ( const dvector v1,
const dvar_vector v2 
)
friend

Element-wise division of v1 by v2 into a dvar_vector.

Parameters
v1dvector of numerators
v2dvar_vector of denominators

Definition at line 226 of file fvar_a46.cpp.

dvar_vector elem_div ( const dvar_vector v1,
const dvector v2 
)
friend

Element-wise division of v1 by v2 into a dvar_vector.

Parameters
v1dvar_vector of numerators
v2dvector of denominators

Definition at line 141 of file fvar_a46.cpp.

dvar_vector elem_prod ( const dvar_vector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 32 of file fvar_a45.cpp.

dvar_vector elem_prod ( const dvector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 125 of file fvar_a45.cpp.

dvar_vector elem_prod ( const dvar_vector v1,
const dvector v2 
)
friend

Description not yet available.

Parameters

Definition at line 211 of file fvar_a45.cpp.

dvar_vector exp ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 117 of file fvar_a29.cpp.

dvar_vector fabs ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 17 of file fvar_ar3.cpp.

char* fform ( const char *  ,
const dvar_vector  
)
friend
dvar_vector first_difference ( const dvar_vector x)
friend

Returns a dvector containing the differences of an x(i) and x(i + 1) for i = 1 to x.indexmax() - 1.

Parameters
xinput.

Definition at line 15 of file fvar_dif.cpp.

dvar_vector log ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 236 of file fvar_a29.cpp.

void make_indvar_list ( const dvar_vector t)
friend

Description not yet available.

Parameters

Definition at line 159 of file fvar_arr.cpp.

Referenced by dvar_vector().

dvariable norm ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 69 of file fvar_ar3.cpp.

dvariable norm2 ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 87 of file fvar_ar3.cpp.

dvar_matrix operator* ( const dvar_matrix m1,
const dmatrix m2 
)
friend

Description not yet available.

Parameters

Definition at line 35 of file fvar_m19.cpp.

dvariable operator* ( const dvar_vector v1,
const dvar_vector v2 
)
friend

Compute the dot product of two variable type vectors.

The minimum and maxium legal subscripts of the arguments must agree; otherwize an error message is printed and execution terminates.

Parameters
v1A dvar_vector, $a$.
v2A dvar_vector, $b$.
Returns
A dvariable, $z = a\cdot b = \sum_i a_i\cdot b_i$ containing the value of the dot product of the two arguments.

Definition at line 38 of file fvar_a14.cpp.

dvariable operator* ( const dvector cv1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 32 of file fvar_a15.cpp.

dvariable operator* ( const dvar_vector v2,
const dvector cv1 
)
friend

Description not yet available.

Parameters

Definition at line 31 of file fvar_a16.cpp.

dvar_vector operator* ( const prevariable x,
const dvar_vector t1 
)
friend

Description not yet available.

Parameters

Definition at line 95 of file fvar_a38.cpp.

dvar_vector operator* ( const prevariable x,
const dvector t1 
)
friend

Description not yet available.

Parameters

Definition at line 53 of file fvar_a55.cpp.

dvar_vector operator* ( double  x,
const dvar_vector t1 
)
friend

Description not yet available.

Parameters

Definition at line 83 of file fvar_a53.cpp.

dvar_vector operator* ( const dvar_vector x,
const dmatrix m 
)
friend

Description not yet available.

Parameters

Definition at line 108 of file fvar_m23.cpp.

dvar_vector operator* ( const dmatrix m,
const dvar_vector x 
)
friend

Description not yet available.

Parameters

Definition at line 134 of file fvar_m22.cpp.

dvar_vector operator* ( const dvar_vector x,
const dvar_matrix m 
)
friend

Description not yet available.

Parameters

Definition at line 20 of file fvar_m23.cpp.

dvar_vector operator* ( const dvar_matrix m,
const dvar_vector x 
)
friend

Description not yet available.

Parameters

Definition at line 20 of file fvar_m22.cpp.

dvar_matrix operator* ( const dvar_matrix m1,
const dvar_matrix m2 
)
friend

Description not yet available.

Parameters

Definition at line 83 of file fvar_m14.cpp.

dvar_matrix operator* ( const dmatrix cm1,
const dvar_matrix m2 
)
friend

Description not yet available.

Parameters

Definition at line 32 of file fvar_m18.cpp.

dvar_vector operator+ ( const dvar_vector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 25 of file fvar_a17.cpp.

dvar_vector operator+ ( const dvar_vector v1,
const dvector v2 
)
friend

Description not yet available.

Parameters

Definition at line 18 of file fvar_a19.cpp.

dvar_vector operator+ ( const dvector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 18 of file fvar_a18.cpp.

dvar_vector operator- ( const dvar_vector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 18 of file fvar_a22.cpp.

dvar_vector operator- ( const dvector v1,
const dvar_vector v2 
)
friend

Description not yet available.

Parameters

Definition at line 18 of file fvar_a21.cpp.

dvar_vector operator- ( const dvar_vector v1,
const dvector v2 
)
friend

Description not yet available.

Parameters

Definition at line 18 of file fvar_a23.cpp.

dvar_vector second_difference ( const dvar_vector )
friend
dvar_vector sfabs ( const dvar_vector t1)
friend

Description not yet available.

Parameters

Definition at line 102 of file fvar_ar3.cpp.

dvar_vector sigmoid ( const dvar_vector t1)
friend
dvar_vector sin ( const dvar_vector t1)
friend

Computes sin of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 67 of file fvar_a29.cpp.

dvariable sumsq ( const dvar_vector t1)
friend

Definition at line 96 of file fvar_ar3.cpp.

dvector value ( const dvar_vector v1)
friend

Member Data Documentation

int dvar_vector::index_max
int dvar_vector::index_min
arr_link* dvar_vector::link_ptr

Definition at line 2178 of file fvar.hpp.

Referenced by allocate(), allocatec(), deallocate(), dvar_vector(), and shallow_copy().

vector_shapex* dvar_vector::shape
double_and_int* dvar_vector::va

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