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
d1d45f50
Commit
d1d45f50
authored
Jan 19, 2018
by
Davis King
Browse files
Made test more robust.
parent
50d1ff98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dlib/test/matrix.cpp
dlib/test/matrix.cpp
+6
-6
No files found.
dlib/test/matrix.cpp
View file @
d1d45f50
...
@@ -1471,11 +1471,11 @@ namespace
...
@@ -1471,11 +1471,11 @@ namespace
a
=
0
;
a
=
0
;
set_colm
(
a
,
0
)
=
m
*
b
;
set_colm
(
a
,
0
)
=
m
*
b
;
DLIB_TEST
(
colm
(
a
,
0
)
==
m
*
b
);
DLIB_TEST
(
equal
(
colm
(
a
,
0
)
,
m
*
b
)
)
;
a
=
0
;
a
=
0
;
set_rowm
(
a
,
0
)
=
trans
(
m
*
b
);
set_rowm
(
a
,
0
)
=
trans
(
m
*
b
);
DLIB_TEST
(
rowm
(
a
,
0
)
==
trans
(
m
*
b
));
DLIB_TEST
(
equal
(
rowm
(
a
,
0
)
,
trans
(
m
*
b
))
)
;
DLIB_TEST
(
rowm
(
a
,
0
)
!=
m
*
b
);
DLIB_TEST
(
!
equal
(
rowm
(
a
,
0
)
,
m
*
b
)
)
;
}
}
{
{
matrix
<
double
>
a
(
3
,
3
);
matrix
<
double
>
a
(
3
,
3
);
...
@@ -1484,11 +1484,11 @@ namespace
...
@@ -1484,11 +1484,11 @@ namespace
a
=
0
;
a
=
0
;
set_colm
(
a
,
0
)
=
m
*
b
;
set_colm
(
a
,
0
)
=
m
*
b
;
DLIB_TEST
(
colm
(
a
,
0
)
==
m
*
b
);
DLIB_TEST
(
equal
(
colm
(
a
,
0
)
,
m
*
b
)
)
;
a
=
0
;
a
=
0
;
set_rowm
(
a
,
0
)
=
trans
(
m
*
b
);
set_rowm
(
a
,
0
)
=
trans
(
m
*
b
);
DLIB_TEST
(
rowm
(
a
,
0
)
==
trans
(
m
*
b
));
DLIB_TEST
(
equal
(
rowm
(
a
,
0
)
,
trans
(
m
*
b
))
)
;
DLIB_TEST
(
rowm
(
a
,
0
)
!=
m
*
b
);
DLIB_TEST
(
!
equal
(
rowm
(
a
,
0
)
,
m
*
b
)
)
;
}
}
}
}
...
...
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