[Rcpp-commits] r964 - pkg/RcppArmadillo/inst/include

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Apr 3 21:51:27 CEST 2010


Author: dmbates
Date: 2010-04-03 21:51:27 +0200 (Sat, 03 Apr 2010)
New Revision: 964

Added:
   pkg/RcppArmadillo/inst/include/RcppArmadilloDefines.h
Log:
No longer use a configure script

Added: pkg/RcppArmadillo/inst/include/RcppArmadilloDefines.h
===================================================================
--- pkg/RcppArmadillo/inst/include/RcppArmadilloDefines.h	                        (rev 0)
+++ pkg/RcppArmadillo/inst/include/RcppArmadilloDefines.h	2010-04-03 19:51:27 UTC (rev 964)
@@ -0,0 +1,36 @@
+// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
+//
+// RcppArmadilloDefines.h: Configure-generated defines for Rcpp/Armadillo glue
+//
+// Copyright (C)  2010 Dirk Eddelbuettel and Romain Francois
+//
+// This file is part of RcppArmadillo.
+//
+// RcppArmadillo is free software: you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 2 of the License, or
+// (at your option) any later version.
+//
+// RcppArmadillo is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with RcppArmadillo.  If not, see <http://www.gnu.org/licenses/>.
+
+#ifndef RcppArmadillo__RcppArmadilloDefines__H
+#define RcppArmadillo__RcppArmadilloDefines__H
+
+//#define ARMA_VERSION_GE_070 @ARMA_VERSION_GE_070@
+#define ARMA_VERSION_GE_070 1
+//#define ARMA_VERSION_GE_090 @ARMA_VERSION_GE_090@
+#define ARMA_VERSION_GE_090 1
+
+#if ARMA_VERSION_GE_090
+#define SCALAR(X) ::arma::as_scalar(X)
+#else
+#define SCALAR(X) X
+#endif
+
+#endif



More information about the Rcpp-commits mailing list