Skip to content

Commit 036513a

Browse files
authored
Merge pull request #421 from RcppCore/feature/arma_12.6.3
RcppArmadillo 0.12.6.3.0
2 parents 11ce18a + 64cf746 commit 036513a

File tree

13 files changed

+161
-73
lines changed

13 files changed

+161
-73
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2023-08-28 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): RcppArmadillo 0.12.6.2.0
4+
* inst/NEWS.Rd: Idem
5+
* configure.ac: Idem
6+
* configure: Idem
7+
8+
* inst/include/armadillo_bits/: Armadillo 12.6.3
9+
110
2023-08-08 Dirk Eddelbuettel <[email protected]>
211

312
* DESCRIPTION (Version, Date): RcppArmadillo 0.12.6.2.0

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.12.6.2.0
5-
Date: 2024-08-08
4+
Version: 0.12.6.3.0
5+
Date: 2024-08-28
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

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.71 for RcppArmadillo 0.12.6.2.0.
3+
# Generated by GNU Autoconf 2.71 for RcppArmadillo 0.12.6.3.0.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -610,8 +610,8 @@ MAKEFLAGS=
610610
# Identity of this package.
611611
PACKAGE_NAME='RcppArmadillo'
612612
PACKAGE_TARNAME='rcpparmadillo'
613-
PACKAGE_VERSION='0.12.6.2.0'
614-
PACKAGE_STRING='RcppArmadillo 0.12.6.2.0'
613+
PACKAGE_VERSION='0.12.6.3.0'
614+
PACKAGE_STRING='RcppArmadillo 0.12.6.3.0'
615615
PACKAGE_BUGREPORT='[email protected]'
616616
PACKAGE_URL=''
617617

@@ -1229,7 +1229,7 @@ if test "$ac_init_help" = "long"; then
12291229
# Omit some internal or obsolete options to make the list less imposing.
12301230
# This message is too long to be a string in the A/UX 3.1 sh.
12311231
cat <<_ACEOF
1232-
\`configure' configures RcppArmadillo 0.12.6.2.0 to adapt to many kinds of systems.
1232+
\`configure' configures RcppArmadillo 0.12.6.3.0 to adapt to many kinds of systems.
12331233
12341234
Usage: $0 [OPTION]... [VAR=VALUE]...
12351235
@@ -1291,7 +1291,7 @@ fi
12911291

12921292
if test -n "$ac_init_help"; then
12931293
case $ac_init_help in
1294-
short | recursive ) echo "Configuration of RcppArmadillo 0.12.6.2.0:";;
1294+
short | recursive ) echo "Configuration of RcppArmadillo 0.12.6.3.0:";;
12951295
esac
12961296
cat <<\_ACEOF
12971297
@@ -1372,7 +1372,7 @@ fi
13721372
test -n "$ac_init_help" && exit $ac_status
13731373
if $ac_init_version; then
13741374
cat <<\_ACEOF
1375-
RcppArmadillo configure 0.12.6.2.0
1375+
RcppArmadillo configure 0.12.6.3.0
13761376
generated by GNU Autoconf 2.71
13771377
13781378
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1486,7 +1486,7 @@ cat >config.log <<_ACEOF
14861486
This file contains any messages produced by compilers while
14871487
running configure, to aid debugging if configure makes a mistake.
14881488
1489-
It was created by RcppArmadillo $as_me 0.12.6.2.0, which was
1489+
It was created by RcppArmadillo $as_me 0.12.6.3.0, which was
14901490
generated by GNU Autoconf 2.71. Invocation command line was
14911491
14921492
$ $0$ac_configure_args_raw
@@ -3944,7 +3944,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39443944
# report actual input values of CONFIG_FILES etc. instead of their
39453945
# values after options handling.
39463946
ac_log="
3947-
This file was extended by RcppArmadillo $as_me 0.12.6.2.0, which was
3947+
This file was extended by RcppArmadillo $as_me 0.12.6.3.0, which was
39483948
generated by GNU Autoconf 2.71. Invocation command line was
39493949
39503950
CONFIG_FILES = $CONFIG_FILES
@@ -3999,7 +3999,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
39993999
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40004000
ac_cs_config='$ac_cs_config_escaped'
40014001
ac_cs_version="\\
4002-
RcppArmadillo config.status 0.12.6.2.0
4002+
RcppArmadillo config.status 0.12.6.3.0
40034003
configured by $0, generated by GNU Autoconf 2.71,
40044004
with options \\"\$ac_cs_config\\"
40054005

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
AC_PREREQ([2.69])
1212

1313
## Process this file with autoconf to produce a configure script.
14-
AC_INIT([RcppArmadillo],[0.12.6.2.0],[[email protected]])
14+
AC_INIT([RcppArmadillo],[0.12.6.3.0],[[email protected]])
1515

1616
## Set R_HOME, respecting an environment variable if one is set
1717
: ${R_HOME=$(R RHOME)}

inst/NEWS.Rd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
\newcommand{\ghpr}{\href{https://github.com/RcppCore/RcppArmadillo/pull/#1}{##1}}
44
\newcommand{\ghit}{\href{https://github.com/RcppCore/RcppArmadillo/issues/#1}{##1}}
55

6+
\section{Changes in RcppArmadillo version 0.12.6.3.0 (2023-08-28)}{
7+
\itemize{
8+
\item Upgraded to Armadillo release 12.6.3 (Cortisol Retox)
9+
\itemize{
10+
\item Fix for corner-case in loading CSV files with headers
11+
\item For consistent file handling, all \code{.load()} functions now
12+
open text files in binary mode
13+
}
14+
}
15+
}
16+
617
\section{Changes in RcppArmadillo version 0.12.6.2.0 (2023-08-08)}{
718
\itemize{
819
\item Upgraded to Armadillo release 12.6.2 (Cortisol Retox)

inst/include/armadillo_bits/SpSubview_bones.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,24 @@ class SpSubview : public SpBase< eT, SpSubview<eT> >
104104
inline void randn();
105105

106106

107-
arma_hot inline SpSubview_MapMat_val<eT> operator[](const uword i);
108-
arma_hot inline eT operator[](const uword i) const;
107+
arma_warn_unused inline SpSubview_MapMat_val<eT> operator[](const uword i);
108+
arma_warn_unused inline eT operator[](const uword i) const;
109109

110-
arma_hot inline SpSubview_MapMat_val<eT> operator()(const uword i);
111-
arma_hot inline eT operator()(const uword i) const;
110+
arma_warn_unused inline SpSubview_MapMat_val<eT> operator()(const uword i);
111+
arma_warn_unused inline eT operator()(const uword i) const;
112112

113-
arma_hot inline SpSubview_MapMat_val<eT> operator()(const uword in_row, const uword in_col);
114-
arma_hot inline eT operator()(const uword in_row, const uword in_col) const;
113+
arma_warn_unused inline SpSubview_MapMat_val<eT> operator()(const uword in_row, const uword in_col);
114+
arma_warn_unused inline eT operator()(const uword in_row, const uword in_col) const;
115115

116-
arma_hot inline SpSubview_MapMat_val<eT> at(const uword i);
117-
arma_hot inline eT at(const uword i) const;
116+
arma_warn_unused inline SpSubview_MapMat_val<eT> at(const uword i);
117+
arma_warn_unused inline eT at(const uword i) const;
118118

119-
arma_hot inline SpSubview_MapMat_val<eT> at(const uword in_row, const uword in_col);
120-
arma_hot inline eT at(const uword in_row, const uword in_col) const;
119+
arma_warn_unused inline SpSubview_MapMat_val<eT> at(const uword in_row, const uword in_col);
120+
arma_warn_unused inline eT at(const uword in_row, const uword in_col) const;
121121

122122
inline bool check_overlap(const SpSubview& x) const;
123123

124-
inline bool is_vec() const;
124+
arma_warn_unused inline bool is_vec() const;
125125

126126
inline SpSubview_row<eT> row(const uword row_num);
127127
inline const SpSubview_row<eT> row(const uword row_num) const;

inst/include/armadillo_bits/arma_config.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ struct arma_config
237237
#endif
238238

239239

240+
#if (!defined(ARMA_DONT_TREAT_TEXT_AS_BINARY))
241+
static constexpr bool text_as_binary = true;
242+
#else
243+
static constexpr bool text_as_binary = false;
244+
#endif
245+
246+
240247
static constexpr uword warn_level = (sword(ARMA_WARN_LEVEL) > 0) ? uword(ARMA_WARN_LEVEL) : 0;
241248
};
242249

inst/include/armadillo_bits/arma_version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#define ARMA_VERSION_MAJOR 12
2525
#define ARMA_VERSION_MINOR 6
26-
#define ARMA_VERSION_PATCH 2
26+
#define ARMA_VERSION_PATCH 3
2727
#define ARMA_VERSION_NAME "Cortisol Retox"
2828

2929

inst/include/armadillo_bits/compiler_setup.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@
159159
#undef ARMA_GCC_VERSION
160160
#define ARMA_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
161161

162-
#if (ARMA_GCC_VERSION < 40800)
163-
#error "*** newer compiler required; need gcc 4.8 or later ***"
162+
#if (ARMA_GCC_VERSION < 40803)
163+
#error "*** newer compiler required; need gcc 4.8.3 or newer ***"
164164
#endif
165165

166166
// #if (ARMA_GCC_VERSION < 60100)
@@ -488,8 +488,7 @@
488488
#if defined(min) || defined(max)
489489
#undef min
490490
#undef max
491-
#pragma message ("WARNING: undefined conflicting 'min' and/or 'max' macros;")
492-
#pragma message ("WARNING: suggest to define NOMINMAX before including any windows header")
491+
#pragma message ("WARNING: undefined conflicting 'min' and/or 'max' macros")
493492
#endif
494493

495494
// https://sourceware.org/bugzilla/show_bug.cgi?id=19239

inst/include/armadillo_bits/diskio_bones.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class diskio
5656

5757
arma_cold inline static bool is_readable(const std::string& name);
5858

59+
arma_cold inline static void sanitise_token(std::string& token);
60+
5961
template<typename eT> inline static bool convert_token(eT& val, const std::string& token);
6062
template<typename T> inline static bool convert_token(std::complex<T>& val, const std::string& token);
6163

0 commit comments

Comments
 (0)