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
e89046b1
Commit
e89046b1
authored
May 27, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for the MPC tool
parent
1a70c827
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
1 deletion
+2
-1
mpc.h
dlib/control/mpc.h
+0
-1
CMakeLists.txt
dlib/test/CMakeLists.txt
+1
-0
makefile
dlib/test/makefile
+1
-0
mpc.cpp
dlib/test/mpc.cpp
+0
-0
No files found.
dlib/control/mpc.h
View file @
e89046b1
...
...
@@ -67,7 +67,6 @@ namespace dlib
matrix
<
double
,
S
,
S
>
temp
=
diagm
(
Q
);
for
(
unsigned
long
c
=
0
;
c
<
horizon
;
++
c
)
{
long
i
=
horizon
-
c
-
1
;
lambda
+=
trans
(
B
)
*
temp
*
B
;
temp
=
trans
(
A
)
*
temp
*
A
+
diagm
(
Q
);
}
...
...
dlib/test/CMakeLists.txt
View file @
e89046b1
...
...
@@ -84,6 +84,7 @@ set (tests
md5.cpp
member_function_pointer.cpp
metaprogramming.cpp
mpc.cpp
multithreaded_object.cpp
numerical_integration.cpp
object_detector.cpp
...
...
dlib/test/makefile
View file @
e89046b1
...
...
@@ -99,6 +99,7 @@ SRC += max_sum_submatrix.cpp
SRC
+=
md5.cpp
SRC
+=
member_function_pointer.cpp
SRC
+=
metaprogramming.cpp
SRC
+=
mpc.cpp
SRC
+=
multithreaded_object.cpp
SRC
+=
numerical_integration.cpp
SRC
+=
object_detector.cpp
...
...
dlib/test/mpc.cpp
0 → 100644
View file @
e89046b1
This diff is collapsed.
Click to expand it.
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