Browse code

Rename headers from .hpp to .h

const-ae authored on 19/03/2020 15:07:52
Showing9 changed files

1 1
similarity index 92%
2 2
rename from src/ColumnView.hpp
3 3
rename to src/ColumnView.h
... ...
@@ -1,9 +1,9 @@
1
-#ifndef ColumnView_hpp
2
-#define ColumnView_hpp
1
+#ifndef ColumnView_h
2
+#define ColumnView_h
3 3
 
4 4
 #include <Rcpp.h>
5
-#include "SparseMatrixView.hpp"
6
-#include "VectorSubsetView.hpp"
5
+#include "SparseMatrixView.h"
6
+#include "VectorSubsetView.h"
7 7
 
8 8
 
9 9
 class ColumnView {
... ...
@@ -79,4 +79,4 @@ public:
79 79
 
80 80
 
81 81
 
82
-#endif /* ColumnView_hpp */
82
+#endif /* ColumnView_h */
83 83
similarity index 94%
84 84
rename from src/SkipNAVectorSubsetView.hpp
85 85
rename to src/SkipNAVectorSubsetView.h
... ...
@@ -1,10 +1,10 @@
1 1
 
2 2
 
3
-#ifndef SkipNAVectorSubsetView_hpp
4
-#define SkipNAVectorSubsetView_hpp
3
+#ifndef SkipNAVectorSubsetView_h
4
+#define SkipNAVectorSubsetView_h
5 5
 
6 6
 #include <Rcpp.h>
7
-#include "VectorSubsetView.hpp"
7
+#include "VectorSubsetView.h"
8 8
 using namespace Rcpp;
9 9
 
10 10
 
... ...
@@ -108,4 +108,4 @@ public:
108 108
 
109 109
 
110 110
 
111
-#endif /* SkipNAVectorSubsetView_hpp */
111
+#endif /* SkipNAVectorSubsetView_h */
... ...
@@ -1,6 +1,6 @@
1 1
 #include <Rcpp.h>
2
-#include "SparseMatrixView.hpp"
3
-#include "VectorSubsetView.hpp"
2
+#include "SparseMatrixView.h"
3
+#include "VectorSubsetView.h"
4 4
 using namespace Rcpp;
5 5
 
6 6
 // [[Rcpp::plugins("cpp11")]]
7 7
similarity index 84%
8 8
rename from src/SparseMatrixView.hpp
9 9
rename to src/SparseMatrixView.h
... ...
@@ -1,5 +1,5 @@
1
-#ifndef SparseMatrixView_hpp
2
-#define SparseMatrixView_hpp
1
+#ifndef SparseMatrixView_h
2
+#define SparseMatrixView_h
3 3
 
4 4
 #include <Rcpp.h>
5 5
 using namespace Rcpp;
... ...
@@ -20,4 +20,4 @@ public:
20 20
 
21 21
 dgCMatrixView wrap_dgCMatrix(Rcpp::S4 sp_mat);
22 22
 
23
-#endif /* SparseMatrixView_hpp */
23
+#endif /* SparseMatrixView_h */
24 24
similarity index 96%
25 25
rename from src/VectorSubsetView.hpp
26 26
rename to src/VectorSubsetView.h
... ...
@@ -1,5 +1,5 @@
1
-#ifndef VectorSubsetView_hpp
2
-#define VectorSubsetView_hpp
1
+#ifndef VectorSubsetView_h
2
+#define VectorSubsetView_h
3 3
 
4 4
 
5 5
 #include <Rcpp.h>
... ...
@@ -114,4 +114,4 @@ subset_sum(vec)
114 114
 
115 115
 
116 116
 
117
-# endif /* VectorSubsetView_hpp */
117
+# endif /* VectorSubsetView_h */
... ...
@@ -1,11 +1,11 @@
1 1
 #include <Rcpp.h>
2
-#include "SparseMatrixView.hpp"
3
-#include "ColumnView.hpp"
4
-#include "VectorSubsetView.hpp"
5
-#include "SkipNAVectorSubsetView.hpp"
6
-#include "quantile.hpp"
7
-#include "sample_rank.hpp"
8
-#include "my_utils.hpp"
2
+#include "SparseMatrixView.h"
3
+#include "ColumnView.h"
4
+#include "VectorSubsetView.h"
5
+#include "SkipNAVectorSubsetView.h"
6
+#include "quantile.h"
7
+#include "sample_rank.h"
8
+#include "my_utils.h"
9 9
 
10 10
 using namespace Rcpp;
11 11
 
12 12
similarity index 87%
13 13
rename from src/my_utils.hpp
14 14
rename to src/my_utils.h
... ...
@@ -1,5 +1,5 @@
1
-#ifndef my_utils_hpp
2
-#define my_utils_hpp
1
+#ifndef my_utils_h
2
+#define my_utils_h
3 3
 
4 4
 // This function was copied from https://stackoverflow.com/a/17299623/604854
5 5
 template <typename T>
... ...
@@ -16,4 +16,4 @@ std::vector<T> flatten(const std::vector<std::vector<T>>& v) {
16 16
 }
17 17
 
18 18
 
19
-#endif /* my_utils_hpp */
19
+#endif /* my_utils_h */
20 20
similarity index 96%
21 21
rename from src/quantile.hpp
22 22
rename to src/quantile.h
... ...
@@ -1,9 +1,9 @@
1
-#ifndef quantile_hpp
2
-#define quantile_hpp
1
+#ifndef quantile_h
2
+#define quantile_h
3 3
 
4 4
 
5 5
 #include <Rcpp.h>
6
-#include "VectorSubsetView.hpp"
6
+#include "VectorSubsetView.h"
7 7
 #include <cmath>
8 8
 
9 9
 using namespace Rcpp;
... ...
@@ -83,7 +83,7 @@ double quantile_sparse(NumericVector values, int number_of_zeros, double prob){
83 83
   return quantile_sparse<VectorSubsetView<REALSXP> >(vsv, number_of_zeros, prob);
84 84
 }
85 85
 
86
-#endif /* quantile_hpp */
86
+#endif /* quantile_h */
87 87
 
88 88
 /*** R
89 89
 N <- rpois(1, lambda=2)
90 90
similarity index 97%
91 91
rename from src/sample_rank.hpp
92 92
rename to src/sample_rank.h
... ...
@@ -1,5 +1,5 @@
1
-#ifndef sample_rank_hpp
2
-#define sample_rank_hpp
1
+#ifndef sample_rank_h
2
+#define sample_rank_h
3 3
 
4 4
 
5 5
 #include <Rcpp.h>
... ...
@@ -92,4 +92,4 @@ std::vector<R> calculate_sparse_rank(VT vec, IT positions, int number_of_zeros,
92 92
 }
93 93
 
94 94
 
95
-#endif /* sample_rank_hpp */
95
+#endif /* sample_rank_h */