<commit_before>#ifndef __GF2_SOLVER_H__
#define __GF2_SOLVER_H__

//#include "qcqpcpp/io/io.h"                      // read/writeSparseMatrix
#include "Eigen/Sparse"                           // Eigen::SparseMatrix (solve)
#include "globfit2/globOpt_types.h"               // GF2::Scalar (solve)

namespace GF2 {

/*! \brief Not used.
 */
struct SolverParams
{
        int n_points = 50;
}; // ... struct SolverParams

class Solver
{
    public:
        //typedef GF2::Scalar                                 Scalar;             // in globOpt_types.h
        typedef Eigen::Matrix<Scalar,3,1>                   Vector;
        //typedef LinePrimitive2                              PrimitiveT;
        //typedef PointPrimitive                              PointPrimitiveT;
        //typedef std::vector<std::vector<PrimitiveT> >       PrimitiveContainerT;
        //typedef std::vector<PointPrimitiveT>                PointContainerT;
        typedef Eigen::SparseMatrix<Scalar,Eigen::RowMajor> SparseMatrix;

        //static inline int show       ( int argc, char** argv );
#if WITH_SAMPLE_INPUT
        static inline int sampleInput( int argc, char** argv );
#endif // WITH_SAMPLE_INPUT
        template < class    _PrimitiveContainerT
                 , class    _PointContainerT
                 , typename _Scalar
                 , class    _PointPrimitiveT
                 , class    _PrimitiveT
                 >
        static inline int generateCli   ( int argc, char** argv );
        //static inline int formulate  ( int argc, char** argv );
        template < class _PrimitiveContainerT
                 , class _InnerPrimitiveContainerT
                 , class _PrimitiveT
                 >
        static inline int solve      ( int argc, char** argv );
        template < class _PrimitiveContainerT
                 , class _InnerPrimitiveContainerT
                 , class _PrimitiveT
                 >
        static inline int datafit    ( int argc, char** argv );

        //static inline int run        ( std::string img_path, Scalar const scale, std::vector<Scalar> const& angles, int argc, char** argv ) __attribute__ ((deprecated));

        static inline Eigen::Matrix<GF2::Scalar,3,1> checkSolution( std::vector<Scalar>       const& x
                                                                  , SparseMatrix              const& qo
                                                                  , SparseMatrix              const& Qo
                                                                  , SparseMatrix              const& A
                                                                  , Eigen::Matrix<Scalar,3,1> const& weights );
}; //...class Solver

} //... ns GF2

#ifndef GF2_INC_SOLVER_HPP
#   define GF2_INC_SOLVER_HPP
#   include "globfit2/optimization/impl/solver.hpp"
#endif

#endif // __GF2_SOLVER_H__<commit_msg>- cleaned up solver.h further<commit_after>#ifndef __GF2_SOLVER_H__
#define __GF2_SOLVER_H__

//#include "qcqpcpp/io/io.h"                      // read/writeSparseMatrix
#include "Eigen/Sparse"                           // Eigen::SparseMatrix (solve)
#include "globfit2/globOpt_types.h"               // GF2::Scalar (solve)

namespace GF2 {

/*! \brief Not used.
 */
struct SolverParams
{
        int n_points = 50;
}; // ... struct SolverParams

class Solver
{
    public:
        //typedef Eigen::Matrix<Scalar,3,1>                   Vector;
        typedef Eigen::SparseMatrix<Scalar,Eigen::RowMajor> SparseMatrix;

        template < class _PrimitiveContainerT
                 , class _InnerPrimitiveContainerT
                 , class _PrimitiveT
                 >
        static inline int solve      ( int argc, char** argv );

        /*! \brief Globfit planned. \todo: move to datafit.h. */
        template < class _PrimitiveContainerT
                 , class _InnerPrimitiveContainerT
                 , class _PrimitiveT
                 >
        static inline int datafit    ( int argc, char** argv );

        /*! \brief Unused for now. */
        static inline Eigen::Matrix<GF2::Scalar,3,1> checkSolution( std::vector<Scalar>       const& x
                                                                  , SparseMatrix              const& qo
                                                                  , SparseMatrix              const& Qo
                                                                  , SparseMatrix              const& A
                                                                  , Eigen::Matrix<Scalar,3,1> const& weights );
}; //...class Solver

} //... ns GF2

#ifndef GF2_INC_SOLVER_HPP
#   define GF2_INC_SOLVER_HPP
#   include "globfit2/optimization/impl/solver.hpp"
#endif

#endif // __GF2_SOLVER_H__
{'fraction_non_alphanumeric': 0.08637033916157573, 'fraction_numerical': 0.008426374552348851, 'mean_word_length': 1.3716283716283717, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2359024', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1176, 'n_words': 292}