Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RcppArmadillo 0.12.6.3.0 #421

Merged
merged 2 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2023-08-28 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Version, Date): RcppArmadillo 0.12.6.2.0
* inst/NEWS.Rd: Idem
* configure.ac: Idem
* configure: Idem

* inst/include/armadillo_bits/: Armadillo 12.6.3

2023-08-08 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Version, Date): RcppArmadillo 0.12.6.2.0
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: RcppArmadillo
Type: Package
Title: 'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library
Version: 0.12.6.2.0
Date: 2024-08-08
Version: 0.12.6.3.0
Date: 2024-08-28
Author: Dirk Eddelbuettel, Romain Francois, Doug Bates, Binxiang Ni, and Conrad Sanderson
Maintainer: Dirk Eddelbuettel <[email protected]>
Description: 'Armadillo' is a templated C++ linear algebra library (by Conrad
Expand Down
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for RcppArmadillo 0.12.6.2.0.
# Generated by GNU Autoconf 2.71 for RcppArmadillo 0.12.6.3.0.
#
# Report bugs to <[email protected]>.
#
Expand Down Expand Up @@ -610,8 +610,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='RcppArmadillo'
PACKAGE_TARNAME='rcpparmadillo'
PACKAGE_VERSION='0.12.6.2.0'
PACKAGE_STRING='RcppArmadillo 0.12.6.2.0'
PACKAGE_VERSION='0.12.6.3.0'
PACKAGE_STRING='RcppArmadillo 0.12.6.3.0'
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_URL=''

Expand Down Expand Up @@ -1229,7 +1229,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures RcppArmadillo 0.12.6.2.0 to adapt to many kinds of systems.
\`configure' configures RcppArmadillo 0.12.6.3.0 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1291,7 +1291,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of RcppArmadillo 0.12.6.2.0:";;
short | recursive ) echo "Configuration of RcppArmadillo 0.12.6.3.0:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1372,7 +1372,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
RcppArmadillo configure 0.12.6.2.0
RcppArmadillo configure 0.12.6.3.0
generated by GNU Autoconf 2.71

Copyright (C) 2021 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1486,7 +1486,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by RcppArmadillo $as_me 0.12.6.2.0, which was
It was created by RcppArmadillo $as_me 0.12.6.3.0, which was
generated by GNU Autoconf 2.71. Invocation command line was

$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -3944,7 +3944,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by RcppArmadillo $as_me 0.12.6.2.0, which was
This file was extended by RcppArmadillo $as_me 0.12.6.3.0, which was
generated by GNU Autoconf 2.71. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -3999,7 +3999,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
RcppArmadillo config.status 0.12.6.2.0
RcppArmadillo config.status 0.12.6.3.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
AC_PREREQ([2.69])

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

## Set R_HOME, respecting an environment variable if one is set
: ${R_HOME=$(R RHOME)}
Expand Down
11 changes: 11 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
\newcommand{\ghpr}{\href{https://github.com/RcppCore/RcppArmadillo/pull/#1}{##1}}
\newcommand{\ghit}{\href{https://github.com/RcppCore/RcppArmadillo/issues/#1}{##1}}

\section{Changes in RcppArmadillo version 0.12.6.3.0 (2023-08-28)}{
\itemize{
\item Upgraded to Armadillo release 12.6.3 (Cortisol Retox)
\itemize{
\item Fix for corner-case in loading CSV files with headers
\item For consistent file handling, all \code{.load()} functions now
open text files in binary mode
}
}
}

\section{Changes in RcppArmadillo version 0.12.6.2.0 (2023-08-08)}{
\itemize{
\item Upgraded to Armadillo release 12.6.2 (Cortisol Retox)
Expand Down
22 changes: 11 additions & 11 deletions inst/include/armadillo_bits/SpSubview_bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,24 @@ class SpSubview : public SpBase< eT, SpSubview<eT> >
inline void randn();


arma_hot inline SpSubview_MapMat_val<eT> operator[](const uword i);
arma_hot inline eT operator[](const uword i) const;
arma_warn_unused inline SpSubview_MapMat_val<eT> operator[](const uword i);
arma_warn_unused inline eT operator[](const uword i) const;

arma_hot inline SpSubview_MapMat_val<eT> operator()(const uword i);
arma_hot inline eT operator()(const uword i) const;
arma_warn_unused inline SpSubview_MapMat_val<eT> operator()(const uword i);
arma_warn_unused inline eT operator()(const uword i) const;

arma_hot inline SpSubview_MapMat_val<eT> operator()(const uword in_row, const uword in_col);
arma_hot inline eT operator()(const uword in_row, const uword in_col) const;
arma_warn_unused inline SpSubview_MapMat_val<eT> operator()(const uword in_row, const uword in_col);
arma_warn_unused inline eT operator()(const uword in_row, const uword in_col) const;

arma_hot inline SpSubview_MapMat_val<eT> at(const uword i);
arma_hot inline eT at(const uword i) const;
arma_warn_unused inline SpSubview_MapMat_val<eT> at(const uword i);
arma_warn_unused inline eT at(const uword i) const;

arma_hot inline SpSubview_MapMat_val<eT> at(const uword in_row, const uword in_col);
arma_hot inline eT at(const uword in_row, const uword in_col) const;
arma_warn_unused inline SpSubview_MapMat_val<eT> at(const uword in_row, const uword in_col);
arma_warn_unused inline eT at(const uword in_row, const uword in_col) const;

inline bool check_overlap(const SpSubview& x) const;

inline bool is_vec() const;
arma_warn_unused inline bool is_vec() const;

inline SpSubview_row<eT> row(const uword row_num);
inline const SpSubview_row<eT> row(const uword row_num) const;
Expand Down
7 changes: 7 additions & 0 deletions inst/include/armadillo_bits/arma_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ struct arma_config
#endif


#if (!defined(ARMA_DONT_TREAT_TEXT_AS_BINARY))
static constexpr bool text_as_binary = true;
#else
static constexpr bool text_as_binary = false;
#endif


static constexpr uword warn_level = (sword(ARMA_WARN_LEVEL) > 0) ? uword(ARMA_WARN_LEVEL) : 0;
};

Expand Down
2 changes: 1 addition & 1 deletion inst/include/armadillo_bits/arma_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define ARMA_VERSION_MAJOR 12
#define ARMA_VERSION_MINOR 6
#define ARMA_VERSION_PATCH 2
#define ARMA_VERSION_PATCH 3
#define ARMA_VERSION_NAME "Cortisol Retox"


Expand Down
7 changes: 3 additions & 4 deletions inst/include/armadillo_bits/compiler_setup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@
#undef ARMA_GCC_VERSION
#define ARMA_GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)

#if (ARMA_GCC_VERSION < 40800)
#error "*** newer compiler required; need gcc 4.8 or later ***"
#if (ARMA_GCC_VERSION < 40803)
#error "*** newer compiler required; need gcc 4.8.3 or newer ***"
#endif

// #if (ARMA_GCC_VERSION < 60100)
Expand Down Expand Up @@ -488,8 +488,7 @@
#if defined(min) || defined(max)
#undef min
#undef max
#pragma message ("WARNING: undefined conflicting 'min' and/or 'max' macros;")
#pragma message ("WARNING: suggest to define NOMINMAX before including any windows header")
#pragma message ("WARNING: undefined conflicting 'min' and/or 'max' macros")
#endif

// https://sourceware.org/bugzilla/show_bug.cgi?id=19239
Expand Down
2 changes: 2 additions & 0 deletions inst/include/armadillo_bits/diskio_bones.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class diskio

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

arma_cold inline static void sanitise_token(std::string& token);

template<typename eT> inline static bool convert_token(eT& val, const std::string& token);
template<typename T> inline static bool convert_token(std::complex<T>& val, const std::string& token);

Expand Down
Loading