Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
bf2ce54e
Commit
bf2ce54e
authored
May 22, 2011
by
Davis King
Browse files
Added a matrix_type typedef to structural_svm_problem_threaded
so it matches the interface of the structural_svm_problem.
parent
8e4b63df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
dlib/svm/structural_svm_problem_threaded.h
dlib/svm/structural_svm_problem_threaded.h
+4
-3
dlib/svm/structural_svm_problem_threaded_abstract.h
dlib/svm/structural_svm_problem_threaded_abstract.h
+4
-3
No files found.
dlib/svm/structural_svm_problem_threaded.h
View file @
bf2ce54e
...
@@ -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
;
...
...
dlib/svm/structural_svm_problem_threaded_abstract.h
View file @
bf2ce54e
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment