Skip to content
Snippets Groups Projects
Commit 5b6e8c9c authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Marked binding constructors and methods in Array as deprecated

parent 296bf503
No related branches found
No related tags found
1 merge request!31Code revision
......@@ -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
}
......
......@@ -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 );
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment