From 0990fa56eebe143b5f9bd2ef0d31f613d2d3eae2 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 10 May 2021 16:18:23 +0100 Subject: [PATCH] Fixed sparse histogram class name --- include/etl/histogram.h | 16 ++++++++-------- test/test_histogram.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/etl/histogram.h b/include/etl/histogram.h index f2d0eefa..4e0d8fca 100644 --- a/include/etl/histogram.h +++ b/include/etl/histogram.h @@ -346,10 +346,10 @@ namespace etl }; //*************************************************************************** - /// Histogram for sparce keys. + /// Histogram for sparse keys. //*************************************************************************** template - class sparce_histogram : public etl::unary_function + class sparse_histogram : public etl::unary_function { private: @@ -371,7 +371,7 @@ namespace etl //********************************* /// Constructor //********************************* - sparce_histogram() + sparse_histogram() { } @@ -379,7 +379,7 @@ namespace etl /// Constructor //********************************* template - sparce_histogram(TIterator first, TIterator last) + sparse_histogram(TIterator first, TIterator last) { add(first, last); } @@ -387,7 +387,7 @@ namespace etl //********************************* /// Copy constructor //********************************* - sparce_histogram(const sparce_histogram& other) + sparse_histogram(const sparse_histogram& other) { this->accumulator = other.accumulator; } @@ -396,7 +396,7 @@ namespace etl //********************************* /// Move constructor //********************************* - sparce_histogram(sparce_histogram&& other) + sparse_histogram(sparse_histogram&& other) { accumulator = etl::move(other.accumulator); } @@ -405,7 +405,7 @@ namespace etl //********************************* /// Copy assignment //********************************* - sparce_histogram& operator =(const sparce_histogram& rhs) + sparse_histogram& operator =(const sparse_histogram& rhs) { accumulator = rhs.accumulator; @@ -416,7 +416,7 @@ namespace etl //********************************* /// Move assignment //********************************* - sparce_histogram& operator =(sparce_histogram&& rhs) + sparse_histogram& operator =(sparse_histogram&& rhs) { accumulator = etl::move(rhs.accumulator); diff --git a/test/test_histogram.cpp b/test/test_histogram.cpp index 1b53d3d8..fe87d82c 100644 --- a/test/test_histogram.cpp +++ b/test/test_histogram.cpp @@ -44,7 +44,7 @@ namespace using IntRuntimeOffsetHistogram = etl::histogram; using IntOffset0Histogram = etl::histogram; using IntOffsetminus4Histogram = etl::histogram; - using StringHistogram = etl::sparce_histogram; + using StringHistogram = etl::sparse_histogram; //*********************************** std::array input1 =