Commit ea2a5184 authored by Davis King's avatar Davis King

Cleaned up the code a little by pulling the caching logic out into its

own class.
parent 007e218e
This diff is collapsed.
...@@ -13,15 +13,15 @@ namespace dlib ...@@ -13,15 +13,15 @@ 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 : public oca_problem<matrix_type> class structural_svm_problem : public oca_problem<matrix_type_>
{ {
public: public:
/*! /*!
REQUIREMENTS ON matrix_type REQUIREMENTS ON matrix_type_
- matrix_type == a dlib::matrix capable of storing column vectors - matrix_type_ == a dlib::matrix capable of storing column vectors
REQUIREMENTS ON feature_vector_type_ REQUIREMENTS ON feature_vector_type_
- feature_vector_type_ == a dlib::matrix capable of storing column vectors - feature_vector_type_ == a dlib::matrix capable of storing column vectors
...@@ -81,6 +81,7 @@ namespace dlib ...@@ -81,6 +81,7 @@ namespace dlib
paper. paper.
!*/ !*/
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