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
a65bdf13
There was an error fetching the commit references. Please try again later.
Commit
a65bdf13
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Fixes in ArrayView and VectorView
parent
5984c90e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TNL/Containers/ArrayView.h
+1
-1
1 addition, 1 deletion
src/TNL/Containers/ArrayView.h
src/TNL/Containers/VectorView.h
+1
-1
1 addition, 1 deletion
src/TNL/Containers/VectorView.h
src/TNL/Containers/VectorView_impl.h
+1
-1
1 addition, 1 deletion
src/TNL/Containers/VectorView_impl.h
with
3 additions
and
3 deletions
src/TNL/Containers/ArrayView.h
+
1
−
1
View file @
a65bdf13
...
...
@@ -52,7 +52,7 @@ public:
// "Templated copy-constructor" accepting any cv-qualification of Value
template
<
typename
Value_
>
__cuda_callable__
ArrayView
(
ArrayView
<
Value_
,
Device
,
Index
>&
array
)
ArrayView
(
const
ArrayView
<
Value_
,
Device
,
Index
>&
array
)
:
data
(
array
.
getData
()),
size
(
array
.
getSize
())
{}
// default move-constructor
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Containers/VectorView.h
+
1
−
1
View file @
a65bdf13
...
...
@@ -109,7 +109,7 @@ public:
//! Computes scalar dot product
template
<
typename
Vector
>
NonConstReal
scalarProduct
(
const
Vector
&
v
);
NonConstReal
scalarProduct
(
const
Vector
&
v
)
const
;
//! Computes this = thisMultiplicator * this + alpha * x.
template
<
typename
Vector
>
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Containers/VectorView_impl.h
+
1
−
1
View file @
a65bdf13
...
...
@@ -243,7 +243,7 @@ template< typename Real,
template
<
typename
Vector
>
typename
VectorView
<
Real
,
Device
,
Index
>::
NonConstReal
VectorView
<
Real
,
Device
,
Index
>::
scalarProduct
(
const
Vector
&
v
)
scalarProduct
(
const
Vector
&
v
)
const
{
return
Algorithms
::
VectorOperations
<
Device
>::
template
getScalarProduct
<
VectorView
,
Vector
,
NonConstReal
>(
*
this
,
v
);
}
...
...
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