[Rcpp-commits] r604 - papers/rjournal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Feb 6 17:24:15 CET 2010


Author: edd
Date: 2010-02-06 17:24:15 +0100 (Sat, 06 Feb 2010)
New Revision: 604

Modified:
   papers/rjournal/EddelbuettelFrancois.tex
   papers/rjournal/RJwrapper.tex
Log:
table now floats 'Here'
a bit more prettified


Modified: papers/rjournal/EddelbuettelFrancois.tex
===================================================================
--- papers/rjournal/EddelbuettelFrancois.tex	2010-02-06 15:51:01 UTC (rev 603)
+++ papers/rjournal/EddelbuettelFrancois.tex	2010-02-06 16:24:15 UTC (rev 604)
@@ -724,21 +724,24 @@
 \code{b} containing 100 elements each. The timings are summarized in the 
 table below:
 
-\begin{center}
-  \begin{small}
-    \begin{tabular}{lrr}
-      \toprule
-      \textbf{Method} & \textbf{Time} (ms) & Ratio \\ 
-      \cmidrule(r){2-3}
-      R API & 32 & \\
-      \code{RcppVector<double>} & 354 & 11.1 \\
-      \code{NumericVector::operator[]} & 52 & 1.6 \\
-      \code{NumericVector::begin} & 33 &  1.0 \\
-      \bottomrule
-    \end{tabular}
-  \end{small}
-  %\caption{Performance comparison for convolution example}
-\end{center}
+\begin{table}[H]  
+  \begin{center}
+    \begin{small}
+      \begin{tabular}{lrr}
+        \toprule
+        \textbf{Method} & \textbf{Time}  & Relative \\ 
+                        &  (millisec)    & to R API \\ 
+        \cmidrule(r){2-3}
+        R API (as benchmark) & 32 & \\
+        \code{RcppVector<double>} & 354 & 11.1 \\
+        \code{NumericVector::operator[]} & 52 & 1.6 \\
+        \code{NumericVector::begin} & 33 &  1.0 \\
+        \bottomrule
+      \end{tabular}
+    \end{small}
+    \caption{Performance for convolution example}
+  \end{center}
+\end{table}
 
 The first implementation, using the traditional R API, unsurprisingly 
 appears to be the most efficient. It takes advantage of pointer 

Modified: papers/rjournal/RJwrapper.tex
===================================================================
--- papers/rjournal/RJwrapper.tex	2010-02-06 15:51:01 UTC (rev 603)
+++ papers/rjournal/RJwrapper.tex	2010-02-06 16:24:15 UTC (rev 604)
@@ -2,9 +2,11 @@
 \usepackage{RJournal}
 \usepackage[round]{natbib}
 \bibliographystyle{abbrvnat}
-\usepackage{booktabs}
 
 %% load any required packages here
+\usepackage{booktabs}           % fancier \hrule
+\usepackage{float}		% float 'here' -- but not with multicol?
+\restylefloat{figure}
 
 \begin{document}
 



More information about the Rcpp-commits mailing list