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
fc7595d0
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "c59000ac3ad12ad5e1f769267742d10174de4921"
Unverified
Commit
fc7595d0
authored
Feb 03, 2022
by
Adrià Arrufat
Committed by
GitHub
Feb 03, 2022
Browse files
Relax MPC test for macOS (#2500)
parent
86b3a809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/test/mpc.cpp
dlib/test/mpc.cpp
+1
-1
No files found.
dlib/test/mpc.cpp
View file @
fc7595d0
...
@@ -403,7 +403,7 @@ namespace
...
@@ -403,7 +403,7 @@ namespace
dlog
<<
LINFO
<<
trans
(
alpha2
);
dlog
<<
LINFO
<<
trans
(
alpha2
);
dlog
<<
LINFO
<<
"objective value: "
<<
0.5
*
trans
(
alpha
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha
;
dlog
<<
LINFO
<<
"objective value: "
<<
0.5
*
trans
(
alpha
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha
;
dlog
<<
LINFO
<<
"objective value2: "
<<
0.5
*
trans
(
alpha2
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha2
;
dlog
<<
LINFO
<<
"objective value2: "
<<
0.5
*
trans
(
alpha2
)
*
Q
*
alpha
+
trans
(
b
)
*
alpha2
;
DLIB_TEST_MSG
(
max
(
abs
(
alpha
-
alpha2
))
<
1e-
7
,
max
(
abs
(
alpha
-
alpha2
)));
DLIB_TEST_MSG
(
max
(
abs
(
alpha
-
alpha2
))
<
1e-
6
,
max
(
abs
(
alpha
-
alpha2
)));
}
}
test_with_positive_target_error_thresh
();
test_with_positive_target_error_thresh
();
...
...
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