Commit 506acf23 authored by Martin Marinov's avatar Martin Marinov
Browse files

Remove dummy constructor and destructor definitions that can be generated...

Remove dummy constructor and destructor definitions that can be generated automatically by the compiler.
parent a7794840
......@@ -36,13 +36,6 @@ namespace COMISO {
class COMISODLLEXPORT TestInterface : public NProblemGmmInterface
{
public:
/// Default constructor
TestInterface() {}
/// Destructor
~TestInterface() {}
// minimize (x-2.4)^2
virtual int n_unknowns ( )
......
......@@ -67,9 +67,6 @@ public:
ConstrainedSolver( bool _do_gcd = true): do_gcd_(_do_gcd)
{ epsilon_ = 1e-8; noisy_ = 1; }
/// Destructor
~ConstrainedSolver() { }
/** @name Contrained solvers
* Functions to solve constrained linear systems of the form Ax=b (stemming from quadratic energies).
* The constraints can be linear constraints of the form \f$ x_1*c_1+ \cdots +x_n*c_n=c \f$ as well as integer constraints \f$x_i\in \mathbf{Z}\f$.
......
......@@ -30,20 +30,6 @@
namespace COMISO {
EigenLDLTSolver::EigenLDLTSolver() : n_(0)
{
}
//-----------------------------------------------------------------------------
EigenLDLTSolver::~EigenLDLTSolver()
{
}
//-----------------------------------------------------------------------------
......@@ -56,7 +42,7 @@ bool EigenLDLTSolver::calc_system( const std::vector<int>& _colptr,
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
bool EigenLDLTSolver::update_system( const std::vector<int>& _colptr,
......
......@@ -58,46 +58,41 @@ LOW_CODE_QUALITY_SECTION_END
namespace COMISO {
//== CLASS DEFINITION =========================================================
class EigenLDLTSolver
class COMISODLLEXPORT EigenLDLTSolver
{
public:
EigenLDLTSolver() : n_(0) {}
// _size is maximal size this instance can handle (smaller problems are possible!!!)
COMISODLLEXPORT EigenLDLTSolver();
COMISODLLEXPORT ~EigenLDLTSolver();
COMISODLLEXPORT
bool calc_system( const std::vector<int>& _colptr,
bool calc_system(const std::vector<int>& _colptr,
const std::vector<int>& _rowind,
const std::vector<double>& _values );
const std::vector<double>& _values);
template< class GMM_MatrixT>
bool calc_system_gmm( const GMM_MatrixT& _mat);
bool calc_system_gmm(const GMM_MatrixT& _mat);
template< class Eigen_MatrixT>
bool calc_system_eigen( const Eigen_MatrixT& _mat);
bool calc_system_eigen(const Eigen_MatrixT& _mat);
COMISODLLEXPORT
bool update_system( const std::vector<int>& _colptr,
bool update_system(const std::vector<int>& _colptr,
const std::vector<int>& _rowind,
const std::vector<double>& _values );
const std::vector<double>& _values);
template< class GMM_MatrixT>
bool update_system_gmm( const GMM_MatrixT& _mat);
bool update_system_gmm(const GMM_MatrixT& _mat);
template< class Eigen_MatrixT>
bool update_system_eigen( const Eigen_MatrixT& _mat);
bool update_system_eigen(const Eigen_MatrixT& _mat);
bool solve(double * _x0, double * _b);
COMISODLLEXPORT
bool solve ( double * _x0, double * _b);
COMISODLLEXPORT
bool solve ( std::vector<double>& _x0, std::vector<double>& _b);
bool solve(std::vector<double>& _x0, std::vector<double>& _b);
COMISODLLEXPORT
bool& show_timings();
COMISODLLEXPORT
int dimension();
private:
......@@ -110,7 +105,7 @@ private:
bool show_timings_;
};
//=============================================================================
//=============================================================================
} // namespace COMISO
//=============================================================================
#if defined(INCLUDE_TEMPLATES) && !defined(COMISO_EIGEN_LDLT_SOLVER_TEMPLATES_C)
......
......@@ -38,16 +38,8 @@ template <class RealT>
class IterativeSolverT
{
public:
typedef RealT Real;
/// Constructor
IterativeSolverT() {}
/// Destructor
~IterativeSolverT() {}
// local gauss_seidel
bool gauss_seidel_local( typename gmm::csc_matrix<Real>& _A,
std::vector<Real>& _x,
......
......@@ -82,14 +82,6 @@ MISolver::MISolver()
}
//-----------------------------------------------------------------------------
MISolver::~MISolver()
{
}
//-----------------------------------------------------------------------------
void
......
......@@ -96,10 +96,6 @@ public:
/// default Constructor
MISolver();
/// Destructor
~MISolver();
/// Compute greedy approximation to a mixed integer problem.
/** @param _A symmetric positive semi-definite CSC matrix (Will be \b destroyed!)
* @param _x vector holding solution at the end
......
......@@ -56,16 +56,8 @@ template<class VType, class IType>
class MutablePriorityQueueT
{
public:
typedef Triple<VType,IType,unsigned int> TripleVII;
/// Default constructor
MutablePriorityQueueT() {}
/// Destructor
~MutablePriorityQueueT() {}
// reset timestamps
void clear(size_t _n)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment