/* Copyright by Matthias Hoechsmann (C) 2002 ===================================== You may use, copy and distribute this file freely as long as you - do not change the file, - leave this copyright notice in the file, - do not make any profit with the distribution of this file - give credit where credit is due You are not allowed to copy or distribute this file otherwise The commercial usage and distribution of this file is prohibited Please report bugs and suggestions to */ #ifndef _TREE_EDIT_H_ #define _TREE_EDIT_H_ #include #include #include "types.h" #include "algebra.h" #include "ppforestsz.h" //#include "ppforestali.h" template class Mapping { R *m_mtrxTD; R *m_mtrxFD; Ulong *m_rowStartTD; Ulong *m_rowStartFD; Ulong m_mtrxSizeTD; Ulong m_mtrxSizeFD; R m_optimum; PPForestSZ *m_ppfx; PPForestSZ *m_ppfy; const SZAlgebra *m_alg; inline R getMtrxTDVal(Ulong i,Ulong j) const { assert(m_rowStartTD[i]+j &ppf,Uint i, Uint j, Uint k, Uint l, Uint &node); public: Mapping(const PPForestSZ *ppfx, const PPForestSZ *ppfy,const SZAlgebra &alg); ~Mapping(); R getGlobalOptimum() {return m_optimum;}; }; #endif