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
835d3b9b
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "0768b1b9079ea75c22b453e1856e1f2841ff8571"
Commit
835d3b9b
authored
Aug 15, 2015
by
Davis King
Browse files
fixed incorrect tests
parent
cd834b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dlib/test/matrix3.cpp
dlib/test/matrix3.cpp
+6
-6
No files found.
dlib/test/matrix3.cpp
View file @
835d3b9b
...
...
@@ -1085,28 +1085,28 @@ namespace
matrix
<
double
>
p
=
g
+
tau
*
dlib
::
colm
(
B
,
0
);
matrix
<
double
>
q
=
dlib
::
colm
(
B
,
0
);
DLIB_TEST
(
length
(
p
-
q
)
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
q
)
)
<
1e-14
);
p
=
tau
*
dlib
::
colm
(
B
,
0
);
q
=
dlib
::
colm
(
B
,
0
);
DLIB_TEST
(
length
(
p
-
q
)
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
q
)
)
<
1e-14
);
g
=
dlib
::
uniform_matrix
<
double
>
(
n
,
n
,
0.0
);
p
=
g
+
tau
*
B
;
DLIB_TEST
(
length
(
p
-
B
)
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
B
)
)
<
1e-14
);
p
=
g
+
tau
*
subm
(
B
,
get_rect
(
B
));
DLIB_TEST
(
length
(
p
-
B
)
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
B
)
)
<
1e-14
);
g
=
dlib
::
uniform_matrix
<
double
>
(
2
,
2
,
0.0
);
p
=
g
+
tau
*
subm
(
B
,
1
,
1
,
2
,
2
);
DLIB_TEST
(
length
(
p
-
subm
(
B
,
1
,
1
,
2
,
2
))
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
subm
(
B
,
1
,
1
,
2
,
2
))
)
<
1e-14
);
set_subm
(
p
,
0
,
0
,
2
,
2
)
=
g
+
tau
*
subm
(
B
,
1
,
1
,
2
,
2
);
DLIB_TEST
(
length
(
p
-
subm
(
B
,
1
,
1
,
2
,
2
))
<
1e-14
);
DLIB_TEST
(
max
(
abs
(
p
-
subm
(
B
,
1
,
1
,
2
,
2
))
)
<
1e-14
);
}
...
...
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