Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
dc9db580
Commit
dc9db580
authored
Dec 28, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
658927b3
c6df93f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
assert.h
dlib/assert.h
+3
-1
svm_c_linear_dcd.cpp
dlib/test/svm_c_linear_dcd.cpp
+1
-1
No files found.
dlib/assert.h
View file @
dc9db580
...
@@ -56,7 +56,9 @@ namespace dlib
...
@@ -56,7 +56,9 @@ namespace dlib
#if !defined(DLIB_DISABLE_ASSERTS) && ( defined DEBUG || defined _DEBUG)
#if !defined(DLIB_DISABLE_ASSERTS) && ( defined DEBUG || defined _DEBUG)
// make sure ENABLE_ASSERTS is defined if we are indeed using them.
// make sure ENABLE_ASSERTS is defined if we are indeed using them.
#define ENABLE_ASSERTS
#ifndef ENABLE_ASSERTS
#define ENABLE_ASSERTS
#endif
#endif
#endif
// -----------------------------
// -----------------------------
...
...
dlib/test/svm_c_linear_dcd.cpp
View file @
dc9db580
...
@@ -314,7 +314,7 @@ namespace
...
@@ -314,7 +314,7 @@ namespace
rs
.
add
(
labels
[
k
]
*
df
(
samples
[
k
]));
rs
.
add
(
labels
[
k
]
*
df
(
samples
[
k
]));
}
}
}
}
DLIB_TEST_MSG
(
std
::
abs
(
rs
.
min
()
-
1
)
<
1e-
7
,
std
::
abs
(
rs
.
min
()
-
1
));
DLIB_TEST_MSG
(
std
::
abs
(
rs
.
min
()
-
1
)
<
1e-
6
,
std
::
abs
(
rs
.
min
()
-
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