Commit d0fc1bb7 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed VectorOperations class which is now useless

It contained only methods for prefixSum and segmentedPrefixSum, which
were identical for Host and Cuda, so they can be easily implemented
directly in Vector and VectorView.
parent 1777e488
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -10,8 +10,6 @@

#pragma once

#include <TNL/Containers/Algorithms/PrefixSumType.h>

namespace TNL {
namespace Benchmarks {

+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
#pragma once

#include <TNL/Containers/Algorithms/Reduction.h>
#include <TNL/Containers/Algorithms/PrefixSum.h>
#include "CommonVectorOperations.h"

namespace TNL {
+7 −4
Original line number Diff line number Diff line
@@ -14,20 +14,23 @@

#include <TNL/Devices/Host.h>
#include <TNL/Devices/Cuda.h>
#include <TNL/Devices/MIC.h>
#include <TNL/Containers/Algorithms/PrefixSumType.h>

namespace TNL {
namespace Containers {
namespace Algorithms {

enum class PrefixSumType {
   Exclusive,
   Inclusive
};

template< typename Device,
           PrefixSumType Type = PrefixSumType::Inclusive >
class PrefixSum {};
class PrefixSum;

template< typename Device,
           PrefixSumType Type = PrefixSumType::Inclusive >
class SegmentedPrefixSum {};
class SegmentedPrefixSum;


template< PrefixSumType Type >
+0 −24
Original line number Diff line number Diff line
/***************************************************************************
                          PrefixSumType.h  -  description
                             -------------------
    begin                : Jun 6, 2019
    copyright            : (C) 2019 by Tomas Oberhuber
    email                : tomas.oberhuber@fjfi.cvut.cz
 ***************************************************************************/

/* See Copyright Notice in tnl/Copyright */

#pragma once

namespace TNL {
namespace Containers {
namespace Algorithms {

enum class PrefixSumType {
   Exclusive,
   Inclusive
};

} // namespace Algorithms
} // namespace Containers
} // namespace TNL
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@

#include <TNL/TypeTraits.h>
#include <TNL/ParallelFor.h>
#include <TNL/Containers/Algorithms/VectorOperations.h>

namespace TNL {
namespace Containers {
Loading