ADMB Documentation
-a65f1c97
|
Description not yet available. More...
#include <imatrix.h>
Public Member Functions | |
imatrix (int, int) | |
Construct integer matrix with row dimension [nrl to nrh] where each column is empty. More... | |
imatrix (int nrl, int nrh, const ivector &iv) | |
Construct integer matrix with row dimension [nrl to nrh] where columns of imatrix references column. More... | |
imatrix (int, int, int, int) | |
Construct integer matrix with the dimensions [nrl to nrh] x [ncl to nch]. More... | |
imatrix (int, int, int, const ivector &) | |
Description not yet available. More... | |
imatrix (int, int, const ivector &, const ivector &) | |
Description not yet available. More... | |
imatrix (const ad_integer &nrl, const ad_integer &nrh, const index_type &ncl, const index_type &nch) | |
Description not yet available. More... | |
imatrix (const imatrix &) | |
Copy constructor - Shallow. More... | |
imatrix (const imatrix_position &) | |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
imatrix (void) | |
Default constructor. More... | |
~imatrix () | |
Destructor. More... | |
void | allocate (void) |
Does not allocate, but initializes imatrix members. More... | |
void | allocate (int nrl, int nrh, const ivector &iv) |
Allocate integer matrix with row dimension [nrl to nrh] where columns of imatrix references column. More... | |
void | allocate (const imatrix &dm) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
void | allocate (int nrl, int nrh, int ncl, int nch) |
Allocate integer matrix with the dimensions [nrl to nrh] x [ncl to nch]. More... | |
void | allocate (int nrl, int nrh) |
Allocate integer matrix with row dimension [nrl to nrh] where each column is empty. More... | |
void | allocate (int nrl, int nrh, int ncl, const ivector &nch) |
Allocate ragged matrix with dimensions [nrl to nrh] x [ncl to nch] where nch is vector of upper column indexes. More... | |
void | allocate (int nrl, int nrh, const ivector &ncl, const ivector &nch) |
Allocate ragged matrix with dimensions [nrl to nrh] x [ncl to nch] where ncl and nch are vectors on lower and upper column indexes. More... | |
void | allocate (const ad_integer &nrl, const ad_integer &nrh, const index_type &ncl, const index_type &nch) |
Allocate matrix on integers with dimension [nrl to nrh] x [ncl to nch]. More... | |
ivector * | begin () const |
void | colfill_seqadd (int, int, int) |
Fills column of a matrix with a sequence of the form base, base+offset, base+2*offset,... More... | |
int | colmax (void) const |
int | colmin (void) const |
unsigned int | colsize () const |
Returns the number of columns. More... | |
void | deallocate () |
Deallocate imatrix memory. More... | |
ivector & | elem (int i) |
const ivector & | elem (int i) const |
int & | elem (int i, int j) |
const int & | elem (int i, int j) const |
ivector * | end () const |
void | fill_seqadd (int, int) |
Fill imatrix with sequence of integers from start and adding with increment. More... | |
unsigned int | get_ncopies () const |
int | indexmax () const |
int | indexmin () const |
void | initialize (void) |
Description not yet available. More... | |
bool | is_valid_row (const int i) const |
Check index i is in matrix row bounds [index_min, index_max]. More... | |
int | operator! (void) const |
ivector & | operator() (int) |
int & | operator() (int, int) |
const ivector & | operator() (int) const |
const int & | operator() (int, int) const |
imatrix & | operator= (const imatrix &t) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
imatrix & | operator= (const int) |
Assigns value to all elements of imatrix. More... | |
ivector & | operator[] (int) |
const ivector & | operator[] (int) const |
void | read_from (const istream &) |
void | read_from (const uistream &) |
imatrix_position | restore_imatrix_position (void) |
imatrix | restore_imatrix_value (const imatrix_position &mpos) |
int | rowmax () const |
int | rowmin () const |
void | rowshift (int min) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More... | |
unsigned int | rowsize () const |
Returns the number of rows. More... | |
void | save_imatrix_position () |
Saves the size and address information for a imatrix. More... | |
void | save_imatrix_value () |
Saves the size, address, and value information for a imatrix. More... | |
void | shallow_copy (const imatrix &) |
Shallow copy other data structure pointers. More... | |
imatrix | sub (int, int) |
Description not yet available. More... | |
void | write_on (const ostream &) const |
void | write_on (const uostream &) const |
Protected Attributes | |
int | index_max |
int | index_min |
ivector * | m |
mat_shapex * | shape |
Friends | |
char * | fform (const char *, const dmatrix &) |
class | i3_array |
imatrix::imatrix | ( | int | nrl, |
int | nrh | ||
) |
imatrix::imatrix | ( | int | nrl, |
int | nrh, | ||
const ivector & | column | ||
) |
imatrix::imatrix | ( | int | nrl, |
int | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
imatrix::imatrix | ( | int | nrl, |
int | nrh, | ||
int | ncl, | ||
const ivector & | nch | ||
) |
imatrix::imatrix | ( | const ad_integer & | nrl, |
const ad_integer & | nrh, | ||
const index_type & | ncl, | ||
const index_type & | nch | ||
) |
imatrix::imatrix | ( | const imatrix & | other | ) |
imatrix::imatrix | ( | const imatrix_position & | position | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Construct imatrix using dimensions in position.
position | imatrix_position |
Definition at line 12 of file imat_a.cpp.
imatrix::imatrix | ( | void | ) |
Default constructor.
Definition at line 238 of file imat.cpp.
Referenced by data_imatrix::allocate().
void imatrix::allocate | ( | void | ) |
Does not allocate, but initializes imatrix members.
Definition at line 138 of file imat.cpp.
Referenced by allocate(), named_imatrix::allocate(), data_imatrix::allocate(), i3_array::allocate(), dvar_compressed_triplet::allocate(), dcompressed_triplet::allocate(), deallocate(), dfcholeski_sparse(), imatrix(), and shallow_copy().
void imatrix::allocate | ( | int | nrl, |
int | nrh, | ||
const ivector & | column | ||
) |
void imatrix::allocate | ( | const imatrix & | other | ) |
void imatrix::allocate | ( | int | nrl, |
int | nrh, | ||
int | ncl, | ||
int | nch | ||
) |
void imatrix::allocate | ( | int | nrl, |
int | nrh | ||
) |
void imatrix::allocate | ( | int | nrl, |
int | nrh, | ||
int | ncl, | ||
const ivector & | nch | ||
) |
void imatrix::allocate | ( | const ad_integer & | nrl, |
const ad_integer & | nrh, | ||
const index_type & | ncl, | ||
const index_type & | nch | ||
) |
Allocate matrix on integers with dimension [nrl to nrh] x [ncl to nch].
nrl | lower row matrix index |
nrh | upper row matrix index |
ncl | lower column matrix index |
nch | upper column matrix index |
Definition at line 370 of file indextyp.cpp.
|
inline |
Definition at line 130 of file imatrix.h.
Referenced by operator=().
void imatrix::colfill_seqadd | ( | int | j, |
int | base, | ||
int | offset | ||
) |
Fills column of a matrix with a sequence of the form base, base+offset, base+2*offset,...
j | the column |
base | is the starting value |
offset | base+offset,base+offset*2,..., |
Definition at line 55 of file ranfill1.cpp.
|
inline |
Definition at line 159 of file imatrix.h.
Referenced by colsize(), colsum(), column(), diagonal(), operator*(), operator=(), lmatrix::operator=(), and trans().
|
inline |
Definition at line 155 of file imatrix.h.
Referenced by colsize(), colsum(), column(), diagonal(), operator*(), operator=(), lmatrix::operator=(), and trans().
|
inline |
void imatrix::deallocate | ( | void | ) |
Deallocate imatrix memory.
Definition at line 248 of file imat.cpp.
Referenced by dvar_compressed_triplet::deallocate(), dcompressed_triplet::deallocate(), and ~imatrix().
|
inline |
Definition at line 233 of file imatrix.h.
Referenced by allocate(), fill_seqadd(), imatrix(), and operator=().
|
inline |
Definition at line 134 of file imatrix.h.
Referenced by operator=().
void imatrix::fill_seqadd | ( | int | start, |
int | increment | ||
) |
|
inline |
Definition at line 142 of file imatrix.h.
Referenced by funnel_init_var::allocate_all(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), colmax(), funnel_init_var::deallocate_all(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), laplace_approximation_calculator::do_separable_stuff_hessian_type_information(), fill_seqadd(), imatrix_position::imatrix_position(), max(), min(), operator=(), operator>>(), report_calling_set(), sort(), sub_unallocated(), and nested_calls_shape::trim().
|
inline |
Definition at line 138 of file imatrix.h.
Referenced by allocate(), begin(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), colmax(), colmin(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), end(), fill_seqadd(), imatrix_position::imatrix_position(), laplace_approximation_calculator::make_sparse_triplet(), max(), min(), operator=(), operator>>(), sort(), sub_unallocated(), and nested_calls_shape::trim().
void imatrix::initialize | ( | void | ) |
Description not yet available.
Definition at line 20 of file imat3.cpp.
Referenced by laplace_approximation_calculator::check_hessian_type2(), laplace_approximation_calculator::check_sparse_matrix_structure(), nested_calls_shape::initialize(), and i3_array::initialize().
bool imatrix::is_valid_row | ( | const int | i | ) | const |
|
inline |
imatrix & imatrix::operator= | ( | const int | value | ) |
void imatrix::read_from | ( | const istream & | ) |
void imatrix::read_from | ( | const uistream & | ) |
imatrix_position imatrix::restore_imatrix_position | ( | void | ) |
imatrix imatrix::restore_imatrix_value | ( | const imatrix_position & | mpos | ) |
|
inline |
Definition at line 150 of file imatrix.h.
Referenced by allocate(), colfill_seqadd(), colsum(), column(), diagonal(), elem(), imatrix(), imatrix_position::imatrix_position(), indexmax(), matrix_index::indexmax(), initialize(), operator*(), operator<<(), operator=(), lmatrix::operator=(), operator>>(), DF_FILE::restore_imatrix_value(), rowsize(), rowsum(), DF_FILE::save_imatrix_position(), DF_FILE::save_imatrix_value(), sort(), sum(), and trans().
|
inline |
Definition at line 146 of file imatrix.h.
Referenced by allocate(), colfill_seqadd(), colsum(), column(), diagonal(), elem(), imatrix(), imatrix_position::imatrix_position(), indexmin(), matrix_index::indexmin(), initialize(), operator*(), operator<<(), operator=(), lmatrix::operator=(), operator>>(), DF_FILE::restore_imatrix_value(), rowshift(), rowsize(), rowsum(), DF_FILE::save_imatrix_position(), DF_FILE::save_imatrix_value(), sort(), sum(), and trans().
void imatrix::rowshift | ( | int | min | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Shift minimum row and maximum row indexes starting starting from min. If the imatrix is empty, no shifting is done and a warning is displayed. Note: rowsize and data for imatrix will remain the same.
min | new rowmin. |
|
inline |
Returns the number of rows.
Definition at line 165 of file imatrix.h.
Referenced by allocate(), and end().
void imatrix::save_imatrix_position | ( | ) |
Saves the size and address information for a imatrix.
Definition at line 35 of file cmpdif9.cpp.
void imatrix::save_imatrix_value | ( | ) |
Saves the size, address, and value information for a imatrix.
Definition at line 20 of file cmpdif9.cpp.
void imatrix::shallow_copy | ( | const imatrix & | other | ) |
Shallow copy other data structure pointers.
other | imatrix |
Definition at line 200 of file imat.cpp.
Referenced by i3_array::i3_array(), imatrix(), and sub().
imatrix imatrix::sub | ( | int | nrl, |
int | nrh | ||
) |
Description not yet available.
Definition at line 45 of file imat.cpp.
Referenced by laplace_approximation_calculator::check_hessian_type().
void imatrix::write_on | ( | const ostream & | ) | const |
void imatrix::write_on | ( | const uostream & | ) | const |
|
friend |
|
protected |
Definition at line 73 of file imatrix.h.
Referenced by allocate(), is_valid_row(), operator=(), rowmax(), rowshift(), and shallow_copy().
|
protected |
Definition at line 72 of file imatrix.h.
Referenced by allocate(), is_valid_row(), operator=(), rowmin(), rowshift(), and shallow_copy().
|
protected |
Definition at line 74 of file imatrix.h.
Referenced by allocate(), begin(), deallocate(), elem(), end(), imatrix(), operator()(), i3_array::operator()(), operator=(), operator[](), rowshift(), and shallow_copy().
|
protected |
Definition at line 75 of file imatrix.h.
Referenced by allocate(), deallocate(), get_ncopies(), operator!(), operator=(), and shallow_copy().
Generated on Wed Sep 7 2022 00:01:34 for ADMB Documentation by 1.8.5 |