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
8b1b6cba
There was an error fetching the commit references. Please try again later.
Commit
8b1b6cba
authored
5 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Small
parent
bd305940
No related branches found
No related tags found
1 merge request
!32
Expression templates 2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/Containers/Vector.h
+1
-1
1 addition, 1 deletion
src/TNL/Containers/Vector.h
src/TNL/Matrices/Sparse_impl.h
+1
-1
1 addition, 1 deletion
src/TNL/Matrices/Sparse_impl.h
with
2 additions
and
2 deletions
src/TNL/Containers/Vector.h
+
1
−
1
View file @
8b1b6cba
...
...
@@ -404,7 +404,7 @@ public:
* \param begin Index of the element in this vector which to begin with.
* \param end Index of the element in this vector which to end with.
*/
void
compute
Segmented
ExclusivePrefixSum
(
const
IndexType
begin
,
const
IndexType
end
);
void
computeExclusivePrefixSum
(
const
IndexType
begin
,
const
IndexType
end
);
template
<
typename
FlagsArray
>
void
computeSegmentedPrefixSum
(
FlagsArray
&
flags
);
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Matrices/Sparse_impl.h
+
1
−
1
View file @
8b1b6cba
...
...
@@ -52,7 +52,7 @@ Index Sparse< Real, Device, Index >::getNumberOfNonzeroMatrixElements() const
IndexType
nonzeroElements
(
0
);
for
(
IndexType
i
=
0
;
i
<
this
->
values
.
getSize
();
i
++
)
if
(
this
->
columnIndexes
.
getElement
(
i
)
!=
this
->
columns
&&
this
->
values
.
getElement
(
i
)
!=
0.
0
)
this
->
values
.
getElement
(
i
)
!=
RealType
(
0
)
)
nonzeroElements
++
;
return
nonzeroElements
;
}
...
...
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