41 #ifndef __ADMB_IVECTOR_H__
42 #define __ADMB_IVECTOR_H__
65 return (
shape != NULL);
85 return (
shape == NULL);
94 const int&
elem(
int i)
const
111 return static_cast<unsigned int>(
124 void fill(
const char *s);
134 ivector(
unsigned int sz,
long int *
x);
151 void write_on(
const ostream& s)
const;
void safe_deallocate()
Safely deallocates memory by reporting if shallow copies are still in scope.
unsigned int get_ncopies(void)
void save_ivector_position() const
Description not yet available.
Uses polymorphism to get index information from various data types to be used in constructing and all...
ivector()
Default constructor.
unsigned int size() const
Description not yet available.
ivector sub(int lb, int ub)
d3_array operator-(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).
Vector of double precision numbers.
~ivector()
Default destructor.
Derived class of index types for ivector.
void read_from(const istream &s)
Reads all the elements from istream _s.
void fill_multinomial(const int &seed, const dvector &p)
Description not yet available.
d3_array operator+(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).
Description not yet available.
void fill_seqadd(int, int)
Fills ivector elements with values starting from base and incremented by offset.
unsigned int get_ncopies() const
ivector & operator+=(const ivector &t)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
ivector & operator=(const ivector &t)
Description not yet available.
Description not yet available.
Array of integers(int) with indexes from index_min to indexmax.
const int & elem(int i) const
ivector operator()(int lb, int ub)
Description not yet available.
Description not yet available.
void allocate()
Does not allocate, but initializes class members.
void initialize(void)
Description not yet available.
Holds "shape" information for vector objects.
void reallocate(double size)
Reallocate size of array.
void deallocate()
Deallocate i3_array memory.
ivector & shift(int min)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void write_on(const ostream &s) const
Writes all the elements to the ostream _s.
Description not yet available.
void fill(const char *s)
Description not yet available.
void safe_allocate(int ncl, int ncu)
Description not yet available.
Description not yet available.
void save_ivector_value() const
Saves the size, address, and value information for a ivector.
void shallow_copy(const ivector &t)
Shallow copy other data structure pointers.