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
ae48b2eb
Commit
ae48b2eb
authored
May 24, 2014
by
Davis King
Browse files
Minor change to avoid a compiler error in gcc 4.1.2.
parent
2a8cb5b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/statistics/lda.h
dlib/statistics/lda.h
+1
-1
No files found.
dlib/statistics/lda.h
View file @
ae48b2eb
...
@@ -68,7 +68,7 @@ namespace dlib
...
@@ -68,7 +68,7 @@ namespace dlib
std
::
map
<
unsigned
long
,
unsigned
long
>
class_labels
=
impl
::
make_class_labels
(
row_labels
);
std
::
map
<
unsigned
long
,
unsigned
long
>
class_labels
=
impl
::
make_class_labels
(
row_labels
);
// LDA can only give out at most class_labels.size()-1 dimensions so don't try to
// LDA can only give out at most class_labels.size()-1 dimensions so don't try to
// compute more than that.
// compute more than that.
lda_dims
=
std
::
min
(
lda_dims
,
class_labels
.
size
()
-
1
);
lda_dims
=
std
::
min
<
unsigned
long
>
(
lda_dims
,
class_labels
.
size
()
-
1
);
// make sure requires clause is not broken
// make sure requires clause is not broken
DLIB_CASSERT
(
class_labels
.
size
()
>
1
,
DLIB_CASSERT
(
class_labels
.
size
()
>
1
,
...
...
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