From 4496b4cbda58708333e9f3c9734e7c5f1469d16b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com>
Date: Sun, 7 Feb 2021 16:40:13 +0100
Subject: [PATCH] Renaming CSRKernelVector to CSRVectorKernel.

---
 src/TNL/Algorithms/Segments/CSR.h                |  2 +-
 .../{CSRKernelVector.h => CSRVectorKernel.h}     | 10 +++++-----
 .../{CSRKernelVector.hpp => CSRVectorKernel.hpp} | 16 ++++++++--------
 src/TNL/Algorithms/Segments/CSRView.h            |  4 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)
 rename src/TNL/Algorithms/Segments/{CSRKernelVector.h => CSRVectorKernel.h} (87%)
 rename src/TNL/Algorithms/Segments/{CSRKernelVector.hpp => CSRVectorKernel.hpp} (93%)

diff --git a/src/TNL/Algorithms/Segments/CSR.h b/src/TNL/Algorithms/Segments/CSR.h
index 576a1de795..dce7cec748 100644
--- a/src/TNL/Algorithms/Segments/CSR.h
+++ b/src/TNL/Algorithms/Segments/CSR.h
@@ -145,7 +145,7 @@ using CSRScalar = CSR< Device, Index, CSRScalarKernel< Index, Device >, IndexAll
 template< typename Device,
           typename Index,
           typename IndexAllocator = typename Allocators::Default< Device >::template Allocator< Index > >
-using CSRVector = CSR< Device, Index, CSRKernelVector< Index, Device >, IndexAllocator >;
+using CSRVector = CSR< Device, Index, CSRVectorKernel< Index, Device >, IndexAllocator >;
 
 template< typename Device,
           typename Index,
diff --git a/src/TNL/Algorithms/Segments/CSRKernelVector.h b/src/TNL/Algorithms/Segments/CSRVectorKernel.h
similarity index 87%
rename from src/TNL/Algorithms/Segments/CSRKernelVector.h
rename to src/TNL/Algorithms/Segments/CSRVectorKernel.h
index a5eb772108..3163abb602 100644
--- a/src/TNL/Algorithms/Segments/CSRKernelVector.h
+++ b/src/TNL/Algorithms/Segments/CSRVectorKernel.h
@@ -1,5 +1,5 @@
 /***************************************************************************
-                          CSRKernelVector.h -  description
+                          CSRVectorKernel.h -  description
                              -------------------
     begin                : Jan 23, 2021 -> Joe Biden inauguration
     copyright            : (C) 2021 by Tomas Oberhuber
@@ -22,12 +22,12 @@ namespace TNL {
 
 template< typename Index,
           typename Device >
-struct CSRKernelVector
+struct CSRVectorKernel
 {
    using IndexType = Index;
    using DeviceType = Device;
-   using ViewType = CSRKernelVector< Index, Device >;
-   using ConstViewType = CSRKernelVector< Index, Device >;
+   using ViewType = CSRVectorKernel< Index, Device >;
+   using ConstViewType = CSRVectorKernel< Index, Device >;
 
    template< typename Offsets >
    void init( const Offsets& offsets );
@@ -60,4 +60,4 @@ struct CSRKernelVector
    }  // namespace Algorithms
 } // namespace TNL
 
-#include <TNL/Algorithms/Segments/CSRKernelVector.hpp>
+#include <TNL/Algorithms/Segments/CSRVectorKernel.hpp>
diff --git a/src/TNL/Algorithms/Segments/CSRKernelVector.hpp b/src/TNL/Algorithms/Segments/CSRVectorKernel.hpp
similarity index 93%
rename from src/TNL/Algorithms/Segments/CSRKernelVector.hpp
rename to src/TNL/Algorithms/Segments/CSRVectorKernel.hpp
index faa0308648..2caf272c14 100644
--- a/src/TNL/Algorithms/Segments/CSRKernelVector.hpp
+++ b/src/TNL/Algorithms/Segments/CSRVectorKernel.hpp
@@ -1,5 +1,5 @@
 /***************************************************************************
-                          CSRKernelVector.hpp -  description
+                          CSRVectorKernel.hpp -  description
                              -------------------
     begin                : Jan 23, 2021 -> Joe Biden inauguration
     copyright            : (C) 2021 by Tomas Oberhuber
@@ -15,7 +15,7 @@
 #include <TNL/Containers/VectorView.h>
 #include <TNL/Algorithms/ParallelFor.h>
 #include <TNL/Algorithms/Segments/details/LambdaAdapter.h>
-#include <TNL/Algorithms/Segments/CSRKernelVector.h>
+#include <TNL/Algorithms/Segments/CSRVectorKernel.h>
 
 namespace TNL {
    namespace Algorithms {
@@ -80,7 +80,7 @@ template< typename Index,
           typename Device >
     template< typename Offsets >
 void
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 init( const Offsets& offsets )
 {
 }
@@ -88,7 +88,7 @@ init( const Offsets& offsets )
 template< typename Index,
           typename Device >
 void
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 reset()
 {
 }
@@ -96,7 +96,7 @@ reset()
 template< typename Index,
           typename Device >
 auto
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 getView() -> ViewType
 {
     return *this;
@@ -105,7 +105,7 @@ getView() -> ViewType
 template< typename Index,
           typename Device >
 auto
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 getConstView() const -> ConstViewType
 {
     return *this;
@@ -114,7 +114,7 @@ getConstView() const -> ConstViewType
 template< typename Index,
           typename Device >
 TNL::String
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 getKernelType()
 {
     return "Vector";
@@ -129,7 +129,7 @@ template< typename Index,
               typename Real,
               typename... Args >
 void
-CSRKernelVector< Index, Device >::
+CSRVectorKernel< Index, Device >::
 segmentsReduction( const OffsetsView& offsets,
                          Index first,
                          Index last,
diff --git a/src/TNL/Algorithms/Segments/CSRView.h b/src/TNL/Algorithms/Segments/CSRView.h
index 3a19f4af78..d5723de3c3 100644
--- a/src/TNL/Algorithms/Segments/CSRView.h
+++ b/src/TNL/Algorithms/Segments/CSRView.h
@@ -15,7 +15,7 @@
 #include <TNL/Containers/Vector.h>
 #include <TNL/Algorithms/Segments/SegmentView.h>
 #include <TNL/Algorithms/Segments/CSRScalarKernel.h>
-#include <TNL/Algorithms/Segments/CSRKernelVector.h>
+#include <TNL/Algorithms/Segments/CSRVectorKernel.h>
 #include <TNL/Algorithms/Segments/CSRKernelHybrid.h>
 #include <TNL/Algorithms/Segments/CSRKernelAdaptive.h>
 
@@ -138,7 +138,7 @@ using CSRViewScalar = CSRView< Device, Index, CSRScalarKernel< Index, Device > >
 
 template< typename Device,
           typename Index >
-using CSRViewVector = CSRView< Device, Index, CSRKernelVector< Index, Device > >;
+using CSRViewVector = CSRView< Device, Index, CSRVectorKernel< Index, Device > >;
 
 template< typename Device,
           typename Index >
-- 
GitLab