Commit bf2ce54e authored by Davis King's avatar Davis King

Added a matrix_type typedef to structural_svm_problem_threaded

so it matches the interface of the structural_svm_problem.
parent 8e4b63df
...@@ -18,13 +18,14 @@ namespace dlib ...@@ -18,13 +18,14 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
template < template <
typename matrix_type, typename matrix_type_,
typename feature_vector_type_ = matrix_type typename feature_vector_type_ = matrix_type_
> >
class structural_svm_problem_threaded : public structural_svm_problem<matrix_type,feature_vector_type_> class structural_svm_problem_threaded : public structural_svm_problem<matrix_type_,feature_vector_type_>
{ {
public: public:
typedef matrix_type_ matrix_type;
typedef typename matrix_type::type scalar_type; typedef typename matrix_type::type scalar_type;
typedef feature_vector_type_ feature_vector_type; typedef feature_vector_type_ feature_vector_type;
......
...@@ -12,10 +12,10 @@ namespace dlib ...@@ -12,10 +12,10 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
template < template <
typename matrix_type, typename matrix_type_,
typename feature_vector_type_ = matrix_type typename feature_vector_type_ = matrix_type_
> >
class structural_svm_problem_threaded : public structural_svm_problem<matrix_type,feature_vector_type_> class structural_svm_problem_threaded : public structural_svm_problem<matrix_type_,feature_vector_type_>
{ {
public: public:
/*! /*!
...@@ -31,6 +31,7 @@ namespace dlib ...@@ -31,6 +31,7 @@ namespace dlib
if you are to use this version of the structural_svm_problem. if you are to use this version of the structural_svm_problem.
!*/ !*/
typedef matrix_type_ matrix_type;
typedef typename matrix_type::type scalar_type; typedef typename matrix_type::type scalar_type;
typedef feature_vector_type_ feature_vector_type; typedef feature_vector_type_ feature_vector_type;
......
Markdown is supported
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