Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
6c43af85
There was an error fetching the commit references. Please try again later.
Commit
6c43af85
authored
6 years ago
by
Lukas Cejka
Browse files
Options
Downloads
Patches
Plain Diff
Tidied up formatting and declarations in tests to make code more readable and consistent.
parent
156e89ec
No related branches found
No related tags found
1 merge request
!16
Matrices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnitTests/Matrices/SparseMatrixTest.h
+5
-3
5 additions, 3 deletions
src/UnitTests/Matrices/SparseMatrixTest.h
with
5 additions
and
3 deletions
src/UnitTests/Matrices/SparseMatrixTest.h
+
5
−
3
View file @
6c43af85
...
...
@@ -51,8 +51,11 @@ void cuda_test_GetType()
template
<
typename
Matrix
>
void
test_SetDimensions
()
{
const
int
rows
=
9
;
const
int
cols
=
8
;
Matrix
m
;
m
.
setDimensions
(
9
,
8
);
m
.
setDimensions
(
rows
,
cols
);
EXPECT_EQ
(
m
.
getRows
(),
9
);
EXPECT_EQ
(
m
.
getColumns
(),
8
);
...
...
@@ -61,10 +64,10 @@ void test_SetDimensions()
template
<
typename
Matrix
>
void
test_SetCompressedRowLengths
()
{
Matrix
m
;
const
int
rows
=
10
;
const
int
cols
=
11
;
Matrix
m
;
m
.
reset
();
m
.
setDimensions
(
rows
,
cols
);
typename
Matrix
::
CompressedRowLengthsVector
rowLengths
;
...
...
@@ -146,7 +149,6 @@ void test_SetElement()
EXPECT_EQ
(
m
.
getElement
(
2
,
2
),
3
);
EXPECT_EQ
(
m
.
getElement
(
3
,
3
),
4
);
EXPECT_EQ
(
m
.
getElement
(
4
,
4
),
5
);
}
TEST
(
SparseMatrixTest
,
CSR_GetTypeTest_Host
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment