File: RcppExports.cpp

package info (click to toggle)
r-cran-phylobase 0.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,308 kB
  • sloc: cpp: 306; ansic: 247; xml: 135; lisp: 38; sh: 9; makefile: 5
file content (222 lines) | stat: -rw-r--r-- 7,928 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#include <Rcpp.h>

using namespace Rcpp;

// isLabelName
bool isLabelName(Rcpp::CharacterVector lblToCheck, Rcpp::CharacterVector lbl);
RcppExport SEXP phylobase_isLabelName(SEXP lblToCheckSEXP, SEXP lblSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::CharacterVector >::type lblToCheck(lblToCheckSEXP);
    Rcpp::traits::input_parameter< Rcpp::CharacterVector >::type lbl(lblSEXP);
    rcpp_result_gen = Rcpp::wrap(isLabelName(lblToCheck, lbl));
    return rcpp_result_gen;
END_RCPP
}
// nRoots
int nRoots(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_nRoots(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(nRoots(ances));
    return rcpp_result_gen;
END_RCPP
}
// tabulateTips
std::vector<int> tabulateTips(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_tabulateTips(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(tabulateTips(ances));
    return rcpp_result_gen;
END_RCPP
}
// nTipsSafe
int nTipsSafe(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_nTipsSafe(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(nTipsSafe(ances));
    return rcpp_result_gen;
END_RCPP
}
// nTipsFastCpp
int nTipsFastCpp(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_nTipsFastCpp(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(nTipsFastCpp(ances));
    return rcpp_result_gen;
END_RCPP
}
// hasSingleton
bool hasSingleton(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_hasSingleton(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(hasSingleton(ances));
    return rcpp_result_gen;
END_RCPP
}
// hasPolytomy
bool hasPolytomy(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_hasPolytomy(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(hasPolytomy(ances));
    return rcpp_result_gen;
END_RCPP
}
// tipsSafe
Rcpp::IntegerVector tipsSafe(Rcpp::IntegerVector ances, Rcpp::IntegerVector desc);
RcppExport SEXP phylobase_tipsSafe(SEXP ancesSEXP, SEXP descSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type desc(descSEXP);
    rcpp_result_gen = Rcpp::wrap(tipsSafe(ances, desc));
    return rcpp_result_gen;
END_RCPP
}
// tipsFast
Rcpp::IntegerVector tipsFast(Rcpp::IntegerVector ances);
RcppExport SEXP phylobase_tipsFast(SEXP ancesSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type ances(ancesSEXP);
    rcpp_result_gen = Rcpp::wrap(tipsFast(ances));
    return rcpp_result_gen;
END_RCPP
}
// getAllNodesSafe
Rcpp::IntegerVector getAllNodesSafe(Rcpp::IntegerMatrix edge);
RcppExport SEXP phylobase_getAllNodesSafe(SEXP edgeSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerMatrix >::type edge(edgeSEXP);
    rcpp_result_gen = Rcpp::wrap(getAllNodesSafe(edge));
    return rcpp_result_gen;
END_RCPP
}
// getAllNodesFast
Rcpp::IntegerVector getAllNodesFast(Rcpp::IntegerMatrix edge);
RcppExport SEXP phylobase_getAllNodesFast(SEXP edgeSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerMatrix >::type edge(edgeSEXP);
    rcpp_result_gen = Rcpp::wrap(getAllNodesFast(edge));
    return rcpp_result_gen;
END_RCPP
}
// testEqInt
Rcpp::List testEqInt(Rcpp::IntegerVector x, Rcpp::IntegerVector y);
RcppExport SEXP phylobase_testEqInt(SEXP xSEXP, SEXP ySEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type x(xSEXP);
    Rcpp::traits::input_parameter< Rcpp::IntegerVector >::type y(ySEXP);
    rcpp_result_gen = Rcpp::wrap(testEqInt(x, y));
    return rcpp_result_gen;
END_RCPP
}
// all_naC
bool all_naC(Rcpp::NumericVector x);
RcppExport SEXP phylobase_all_naC(SEXP xSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::NumericVector >::type x(xSEXP);
    rcpp_result_gen = Rcpp::wrap(all_naC(x));
    return rcpp_result_gen;
END_RCPP
}
// any_naC
bool any_naC(Rcpp::NumericVector x);
RcppExport SEXP phylobase_any_naC(SEXP xSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::NumericVector >::type x(xSEXP);
    rcpp_result_gen = Rcpp::wrap(any_naC(x));
    return rcpp_result_gen;
END_RCPP
}
// nb_naC
int nb_naC(Rcpp::NumericVector x);
RcppExport SEXP phylobase_nb_naC(SEXP xSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::NumericVector >::type x(xSEXP);
    rcpp_result_gen = Rcpp::wrap(nb_naC(x));
    return rcpp_result_gen;
END_RCPP
}
// getRange
Rcpp::NumericVector getRange(Rcpp::NumericVector x, const bool na_rm);
RcppExport SEXP phylobase_getRange(SEXP xSEXP, SEXP na_rmSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::NumericVector >::type x(xSEXP);
    Rcpp::traits::input_parameter< const bool >::type na_rm(na_rmSEXP);
    rcpp_result_gen = Rcpp::wrap(getRange(x, na_rm));
    return rcpp_result_gen;
END_RCPP
}
// hasDuplicatedLabelsCpp
bool hasDuplicatedLabelsCpp(Rcpp::CharacterVector label);
RcppExport SEXP phylobase_hasDuplicatedLabelsCpp(SEXP labelSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::CharacterVector >::type label(labelSEXP);
    rcpp_result_gen = Rcpp::wrap(hasDuplicatedLabelsCpp(label));
    return rcpp_result_gen;
END_RCPP
}
// edgeIdCpp
Rcpp::CharacterVector edgeIdCpp(Rcpp::IntegerMatrix edge, std::string type);
RcppExport SEXP phylobase_edgeIdCpp(SEXP edgeSEXP, SEXP typeSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::IntegerMatrix >::type edge(edgeSEXP);
    Rcpp::traits::input_parameter< std::string >::type type(typeSEXP);
    rcpp_result_gen = Rcpp::wrap(edgeIdCpp(edge, type));
    return rcpp_result_gen;
END_RCPP
}
// checkTreeCpp
Rcpp::List checkTreeCpp(Rcpp::S4 obj, Rcpp::List opts);
RcppExport SEXP phylobase_checkTreeCpp(SEXP objSEXP, SEXP optsSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< Rcpp::S4 >::type obj(objSEXP);
    Rcpp::traits::input_parameter< Rcpp::List >::type opts(optsSEXP);
    rcpp_result_gen = Rcpp::wrap(checkTreeCpp(obj, opts));
    return rcpp_result_gen;
END_RCPP
}