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
5b6e8c9c
There was an error fetching the commit references. Please try again later.
Commit
5b6e8c9c
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Marked binding constructors and methods in Array as deprecated
parent
296bf503
No related branches found
No related tags found
1 merge request
!31
Code revision
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Benchmarks/DistSpMV/tnl-benchmark-distributed-spmv.h
+2
-3
2 additions, 3 deletions
src/Benchmarks/DistSpMV/tnl-benchmark-distributed-spmv.h
src/TNL/Containers/Array.h
+5
-0
5 additions, 0 deletions
src/TNL/Containers/Array.h
with
7 additions
and
3 deletions
src/Benchmarks/DistSpMV/tnl-benchmark-distributed-spmv.h
+
2
−
3
View file @
5b6e8c9c
...
...
@@ -266,9 +266,8 @@ struct SpmvBenchmark
distributedMatrix
.
vectorProduct
(
distributedVector
,
distributedY
);
const
int
rank
=
CommunicatorType
::
GetRank
(
distributedMatrix
.
getCommunicationGroup
()
);
const
int
nproc
=
CommunicatorType
::
GetSize
(
distributedMatrix
.
getCommunicationGroup
()
);
VectorType
subY
(
y
,
Partitioner
::
getOffset
(
matrix
.
getRows
(),
rank
,
nproc
),
Partitioner
::
getSizeForRank
(
matrix
.
getRows
(),
rank
,
nproc
)
);
typename
VectorType
::
ViewType
subY
(
&
y
[
Partitioner
::
getOffset
(
matrix
.
getRows
(),
rank
,
nproc
)
],
Partitioner
::
getSizeForRank
(
matrix
.
getRows
(),
rank
,
nproc
)
);
TNL_ASSERT_EQ
(
distributedY
.
getLocalVectorView
(),
subY
,
"WRONG RESULT !!!"
);
#endif
}
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Containers/Array.h
+
5
−
0
View file @
5b6e8c9c
...
...
@@ -98,6 +98,7 @@ class Array : public Object
* \param data Pointer to data.
* \param size Number of array elements.
*/
[[
deprecated
(
"Binding functionality of Array is deprecated, ArrayView should be used instead."
)]]
Array
(
Value
*
data
,
const
IndexType
&
size
);
...
...
@@ -118,6 +119,7 @@ class Array : public Object
* \param begin is the first index which should be bound.
* \param size is number of array elements that should be bound.
*/
[[
deprecated
(
"Binding functionality of Array is deprecated, ArrayView should be used instead."
)]]
Array
(
Array
&
array
,
const
IndexType
&
begin
=
0
,
const
IndexType
&
size
=
0
);
...
...
@@ -223,6 +225,7 @@ class Array : public Object
* \param _data Pointer to new data.
* \param _size Size of new _data. Number of elements.
*/
[[
deprecated
(
"Binding functionality of Array is deprecated, ArrayView should be used instead."
)]]
void
bind
(
Value
*
_data
,
const
Index
_size
);
...
...
@@ -240,6 +243,7 @@ class Array : public Object
* \param size Size of new array. Number of elements.
*/
template
<
typename
ArrayT
>
[[
deprecated
(
"Binding functionality of Array is deprecated, ArrayView should be used instead."
)]]
void
bind
(
const
ArrayT
&
array
,
const
IndexType
&
begin
=
0
,
const
IndexType
&
size
=
0
);
...
...
@@ -256,6 +260,7 @@ class Array : public Object
* \param array Reference to a static array.
*/
template
<
int
Size
>
[[
deprecated
(
"Binding functionality of Array is deprecated, ArrayView should be used instead."
)]]
void
bind
(
StaticArray
<
Size
,
Value
>&
array
);
/**
...
...
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