From 1276b9e51707185b7f523c02797e5228afa287d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Thu, 2 Jan 2020 17:19:16 +0100 Subject: [PATCH] Deleted getView in Matrix and MatrixView. --- src/TNL/Matrices/Matrix.h | 4 ---- src/TNL/Matrices/Matrix.hpp | 22 ---------------------- src/TNL/Matrices/MatrixView.h | 6 ------ src/TNL/Matrices/MatrixView.hpp | 22 ---------------------- 4 files changed, 54 deletions(-) diff --git a/src/TNL/Matrices/Matrix.h b/src/TNL/Matrices/Matrix.h index 30031da42b..8fc8cb5f28 100644 --- a/src/TNL/Matrices/Matrix.h +++ b/src/TNL/Matrices/Matrix.h @@ -47,10 +47,6 @@ public: const IndexType columns, const RealAllocatorType& allocator = RealAllocatorType() ); - /*ViewType getView(); - - ConstViewType getConstView() const;*/ - virtual void setDimensions( const IndexType rows, const IndexType columns ); diff --git a/src/TNL/Matrices/Matrix.hpp b/src/TNL/Matrices/Matrix.hpp index 3a09d0088a..9fc5ea6208 100644 --- a/src/TNL/Matrices/Matrix.hpp +++ b/src/TNL/Matrices/Matrix.hpp @@ -43,28 +43,6 @@ Matrix( const IndexType rows_, const IndexType columns_, const RealAllocatorType { } -/*template< typename Real, - typename Device, - typename Index, - typename RealAllocator > -auto -Matrix< Real, Device, Index, RealAllocator >:: -getView() -> ViewType -{ - return ViewType( rows, columns, values.getView() ); -} - -template< typename Real, - typename Device, - typename Index, - typename RealAllocator > -auto -Matrix< Real, Device, Index, RealAllocator >:: -getConstView() const -> ConstViewType -{ - return ConstViewType( rows, columns, values.getConstView() ); -}*/ - template< typename Real, typename Device, typename Index, diff --git a/src/TNL/Matrices/MatrixView.h b/src/TNL/Matrices/MatrixView.h index 5a3cde4780..76965e5112 100644 --- a/src/TNL/Matrices/MatrixView.h +++ b/src/TNL/Matrices/MatrixView.h @@ -49,12 +49,6 @@ public: __cuda_callable__ MatrixView( const MatrixView& view ) = default; - //__cuda_callable__ - //ViewType getView(); - - //__cuda_callable__ - //ConstViewType getConstView() const; - virtual IndexType getRowLength( const IndexType row ) const = 0; // TODO: implementation is not parallel diff --git a/src/TNL/Matrices/MatrixView.hpp b/src/TNL/Matrices/MatrixView.hpp index 0473f52b84..bd3d9beaee 100644 --- a/src/TNL/Matrices/MatrixView.hpp +++ b/src/TNL/Matrices/MatrixView.hpp @@ -42,28 +42,6 @@ MatrixView( const IndexType rows_, { } -/*template< typename Real, - typename Device, - typename Index > -__cuda_callable__ -auto -MatrixView< Real, Device, Index >:: -getView() ->ViewType -{ - return ViewType( rows, columns, values.getView() ); -} - -template< typename Real, - typename Device, - typename Index > -__cuda_callable__ -auto -MatrixView< Real, Device, Index >:: -getConstView() const -> ConstViewType -{ - return ConstViewType( rows, columns, values.getConstView() ); -}*/ - template< typename Real, typename Device, typename Index > -- GitLab