From fd30d263fc581ff0d4f852a0b71933b823681745 Mon Sep 17 00:00:00 2001 From: Sebastian Krantz Date: Tue, 31 May 2022 13:24:50 +0200 Subject: [PATCH 1/2] Enabling large Armadillo Matrices https://stackoverflow.com/questions/40592054/large-matrices-in-rcpparmadillo-via-the-arma-64bit-word-define --- src/Makevars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makevars b/src/Makevars index d715e49..812efd9 100755 --- a/src/Makevars +++ b/src/Makevars @@ -1,3 +1,3 @@ CXX_STD = CXX11 -PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) +PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DARMA_64BIT_WORD=1 PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) From f7e3ba409ed1abede62e3b9228d36c1b5d8b749a Mon Sep 17 00:00:00 2001 From: Sebastian Krantz Date: Tue, 31 May 2022 13:24:50 +0200 Subject: [PATCH 2/2] Enabling large Armadillo matrices https://stackoverflow.com/questions/40592054/large-matrices-in-rcpparmadillo-via-the-arma-64bit-word-define --- src/Makevars | 2 +- src/Makevars.win | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makevars b/src/Makevars index d715e49..812efd9 100755 --- a/src/Makevars +++ b/src/Makevars @@ -1,3 +1,3 @@ CXX_STD = CXX11 -PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) +PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DARMA_64BIT_WORD=1 PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) diff --git a/src/Makevars.win b/src/Makevars.win index d715e49..812efd9 100755 --- a/src/Makevars.win +++ b/src/Makevars.win @@ -1,3 +1,3 @@ CXX_STD = CXX11 -PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) +PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DARMA_64BIT_WORD=1 PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)