Skip to content

Commit edaf779

Browse files
committed
second pass, slightly less radical
1 parent 8e8ce2c commit edaf779

File tree

6 files changed

+49
-5
lines changed

6 files changed

+49
-5
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: RcppArmadillo
22
Type: Package
33
Title: 'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library
4-
Version: 0.11.4.1.0.1
5-
Date: 2022-10-11
4+
Version: 0.11.4.1.0.2
5+
Date: 2022-10-12
66
Author: Dirk Eddelbuettel, Romain Francois, Doug Bates, Binxiang Ni, and Conrad Sanderson
77
Maintainer: Dirk Eddelbuettel <[email protected]>
88
Description: 'Armadillo' is a templated C++ linear algebra library (by Conrad

inst/include/RcppArmadillo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727

2828
// Set up actual #include <armadillo> after first #include <RcppArmadilloConfig> and more config
29-
#include <RcppArmadillo_impl/RcppArmadilloForward.h>
29+
#include <RcppArmadilloForward.h>
3030

3131
// Now automatically include Rcpp as well
3232
#include <Rcpp.h>

inst/include/RcppArmadillo/Lighter

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Emacs, please make this -*- mode: C++; -*-
2+
3+
// RcppArmadillo: Rcpp/Armadillo glue
4+
//
5+
// Copyright (C) 2010 - 2022 Dirk Eddelbuettel, Romain Francois and Douglas Bates
6+
//
7+
// This file is part of RcppArmadillo.
8+
//
9+
// RcppArmadillo is free software: you can redistribute it and/or modify it
10+
// under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 2 of the License, or
12+
// (at your option) any later version.
13+
//
14+
// RcppArmadillo is distributed in the hope that it will be useful, but
15+
// WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with RcppArmadillo. If not, see <http://www.gnu.org/licenses/>.
21+
22+
#ifndef RcppArmadillo__RcppArmadillo
23+
#define RcppArmadillo__RcppArmadillo
24+
25+
#if defined(Rcpp_hpp) && !defined(COMPILING_RCPPARMADILLO)
26+
#error "The file 'Rcpp.h' should not be included. Please correct to include only 'RcppArmadillo.h'."
27+
#endif
28+
29+
// We are undoing a design decision from early on by allowing vectors be returned
30+
// as standard 'one-dimension' objects -- as opposed to the matrix form we imposed
31+
#define RCPP_ARMADILLO_RETURN_ANYVEC_AS_VECTOR
32+
33+
// Set up actual #include <armadillo> after first #include <RcppArmadilloConfig> and more config
34+
#include <RcppArmadilloForward.h>
35+
36+
// Automatically include Rcpp as well -- but only the 'lighter' mode sans modules and rtti
37+
#include <Rcpp/Lighter>
38+
39+
// Remaining RcppArmadillo code
40+
#include <RcppArmadillo_impl/RcppArmadilloWrap.h>
41+
#include <RcppArmadillo_impl/RcppArmadilloAs.h>
42+
#include <RcppArmadillo_impl/RcppArmadilloSugar.h>
43+
44+
#endif

inst/include/RcppArmadillo_impl/RcppArmadilloForward.h renamed to inst/include/RcppArmadilloForward.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <RcppCommon.h>
2626
#include <Rconfig.h>
27-
#include <RcppArmadillo_impl/RcppArmadilloConfig.h>
27+
#include <RcppArmadilloConfig.h>
2828

2929
#define ARMA_EXTRA_MAT_PROTO RcppArmadillo_impl/RcppArmadillo_bits/Mat_proto.h
3030
#define ARMA_EXTRA_MAT_MEAT RcppArmadillo_impl/RcppArmadillo_bits/Mat_meat.h
@@ -40,7 +40,7 @@
4040
// One can use the C++11-based on by commenting out the following
4141
// #define and also selecting C++11 (eg via src/Makevars* or the
4242
// DESCRIPTION file) and/or defining #define-ing ARMA_USE_CXX11_RNG
43-
#define ARMA_RNG_ALT RcppArmadillo_impl/RcppArmadillo_bits/Alt_R_RNG.h
43+
#define ARMA_RNG_ALT RcppArmadillo/Alt_R_RNG.h
4444

4545
// Workaround to mitigate possible interference from a system-level installation of Armadillo
4646
#define ARMA_DONT_USE_WRAPPER

0 commit comments

Comments
 (0)