ConicBundle
List of all members

basic routines for the base classes for reorganizing maps More...

#include <ModificationBase.hxx>

Inheritance diagram for ConicBundle::ModificationBase:
ConicBundle::CBout ConicBundle::Modification ConicBundle::PSCAffineModification

Public Member Functions

Constructors and initialization
virtual ~ModificationBase ()
 
 ModificationBase (const CBout *cbout=0, int incr=0)
 
- Public Member Functions inherited from ConicBundle::CBout
virtual void set_out (std::ostream *out=0, int print_level=1)
 Specifies the output level (out==NULL: no output at all, out!=NULL and level=0: errors and warnings, level>0 increasingly detailed information) More...
 
virtual void set_cbout (const CBout *cb, int incr=-1)
 Specifies the output level relative to the given CBout class. More...
 
void clear_cbout ()
 reset to default settings (out=0,print_level=1)
 
 CBout (const CBout *cb=0, int incr=-1)
 calls set_cbout
 
 CBout (std::ostream *outp, int pl=1)
 initialize correspondingly
 
 CBout (const CBout &cb, int incr=0)
 copy constructor
 
virtual bool cb_out (int pl=-1) const
 Returns true if out!=0 and (pl<print_level), pl<0 should be used for WARNINGS and ERRORS only, pl==0 for usual output.
 
std::ostream & get_out () const
 If cb_out() returned true, this returns the output stream, but it will abort if called with out==0.
 
std::ostream * get_out_ptr () const
 returns the pointer to the output stream
 
int get_print_level () const
 returns the print_level
 
virtual int mfile_data (std::ostream &out) const
 writes problem data to the given outstream
 

Protected Member Functions

Internal routines for updating maps in reassign and delete steps
int adapt_map_to_old (CH_Matrix_Classes::Indexmatrix *&adapt_this_map, CH_Matrix_Classes::Indexmatrix *&del_ind, CH_Matrix_Classes::Indexmatrix *&new_ind, CH_Matrix_Classes::Indexmatrix &append_del_ind, const CH_Matrix_Classes::Indexmatrix &input_map, CH_Matrix_Classes::Integer &append_dim, CH_Matrix_Classes::Integer olddim, CH_Matrix_Classes::Integer newdim) const
 internal routine for changing the maps in either of add_reassign_vars and add_reassign_rows More...
 
int form_map_to_old (CH_Matrix_Classes::Indexmatrix &map_to_old, const CH_Matrix_Classes::Indexmatrix &del_ind, CH_Matrix_Classes::Integer dim) const
 internal routine that converts in either of add_delete_vars and add_delete_rows the list of indices to be deleted into a map_to_old that may the be treated in add_reassign_vars or add_reassign_rows respectively. Returns the number of errors detected in the input map. In case of errors, the returned map will not be valid.
 

Detailed Description

basic routines for the base classes for reorganizing maps

Member Function Documentation

◆ adapt_map_to_old()

int ConicBundle::ModificationBase::adapt_map_to_old ( CH_Matrix_Classes::Indexmatrix *&  adapt_this_map,
CH_Matrix_Classes::Indexmatrix *&  del_ind,
CH_Matrix_Classes::Indexmatrix *&  new_ind,
CH_Matrix_Classes::Indexmatrix append_del_ind,
const CH_Matrix_Classes::Indexmatrix input_map,
CH_Matrix_Classes::Integer append_dim,
CH_Matrix_Classes::Integer  olddim,
CH_Matrix_Classes::Integer  newdim 
) const
protected

internal routine for changing the maps in either of add_reassign_vars and add_reassign_rows

Parameters
[in,out]adapt_this_mapholds either var_map_to_old or row_map_to_old
[in,out]del_indholds either var_del_ind or row_del_ind
[in,out]new_indholds either var_new_ind or row_new_ind
[out]append_del_indholds the indices to be deleted in the variables/rows that up till now should have been appended
[in]input_mapholds the input reassignment map_to_old for the indices
[in,out]append_dimholds either var_append_dim or row_append_dim
[in]olddimgives either var_olddim or row_olddim
[in]newdimgives either var_newdim or row_newdim at input time
Returns
number of errors detected in the input map, in case of errors nothing is changed at all

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