Rcpp Version 1.0.14
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
b
c
d
f
g
k
m
n
r
t
y
Typedefs
c
d
e
f
g
i
l
n
p
r
s
t
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
_
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerator
r
v
Related Symbols
o
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
x
y
Functions
a
c
d
e
f
g
i
l
m
o
p
r
s
Variables
Typedefs
Macros
_
a
b
c
d
e
g
h
i
j
l
m
n
o
r
s
t
u
v
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Loading...
Searching...
No Matches
overhead_1.cpp
Go to the documentation of this file.
1
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
2
3
// This is a rewrite of the 'Writing R Extensions' section 5.10.1 example
4
5
#include <
Rcpp.h
>
6
// using namespace Rcpp ;
7
8
SEXP
overhead_cpp
(SEXP a, SEXP b) {
9
return
R_NilValue ;
10
}
8
SEXP
overhead_cpp
(SEXP a, SEXP b) {
…
}
11
12
extern
"C"
void
R_init_overhead_1
(DllInfo *info){
13
14
R_CallMethodDef callMethods[] = {
15
{
"overhead_cpp"
, (DL_FUNC) &
overhead_cpp
, 2},
16
{NULL, NULL, 0}
17
};
18
19
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
20
}
12
extern
"C"
void
R_init_overhead_1
(DllInfo *info) {
…
}
21
Rcpp.h
R_init_overhead_1
void R_init_overhead_1(DllInfo *info)
Definition
overhead_1.cpp:12
overhead_cpp
SEXP overhead_cpp(SEXP a, SEXP b)
Definition
overhead_1.cpp:8
inst
examples
ConvolveBenchmarks
overhead_1.cpp
Generated on Sun Jan 12 2025 11:21:42 for Rcpp Version 1.0.14 by
1.9.8