Skip to content

Commit 4496f00

Browse files
committed
RcppArmadillo 14.0.0-1
1 parent b27b146 commit 4496f00

12 files changed

+69
-23
lines changed

ChangeLog

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2024-07-05 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): RcppArmadillo 14.0.0
4+
* inst/NEWS.Rd: Idem
5+
* configure.ac: Idem
6+
* configure: Idem
7+
8+
* inst/include/RcppArmadillo/interface/RcppArmadilloForward.h:
9+
Re-enable ARMA_IGNORE_DEPRECATED_MARKER
10+
11+
2024-06-24 Dirk Eddelbuettel <[email protected]>
12+
13+
* inst/include/armadillo_bits/: Armadillo 14.0.0
14+
115
2024-06-23 Dirk Eddelbuettel <[email protected]>
216

317
* DESCRIPTION (Version, Date): RcppArmadillo 0.12.8.4.0.14.4 ie the

DESCRIPTION

+2-2
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.8.4.0.14.4
5-
Date: 2024-06-23
4+
Version: 14.0.0-1
5+
Date: 2024-07-05
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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](https://eddelbuettel.github.io/badges/GPL2+.svg)](https://www.gnu.org/licenses/gpl-2.0.html)
66
[![CRAN](https://www.r-pkg.org/badges/version/RcppArmadillo)](https://cran.r-project.org/package=RcppArmadillo)
77
[![Debian package](https://img.shields.io/debian/v/r-cran-rcpparmadillo/sid?color=brightgreen)](https://packages.debian.org/sid/r-cran-rcpparmadillo)
8-
[![r-universe](https://rcppcore.r-universe.dev/badges/RcppArmadillo)](https://rcppcore.r-universe.dev/rcpparmadillo)
8+
[![r-universe](https://rcppcore.r-universe.dev/badges/RcppArmadillo)](https://rcppcore.r-universe.dev/RcppArmadillo)
99
[![Dependencies](https://tinyverse.netlify.app/badge/RcppArmadillo)](https://cran.r-project.org/package=RcppArmadillo)
1010
[![Coverage Status](https://codecov.io/gh/RcppCore/RcppArmadillo/graph/badge.svg)](https://app.codecov.io/github/RcppCore/RcppArmadillo?branch=master)
1111
[![Last Commit](https://img.shields.io/github/last-commit/RcppCore/RcppArmadillo)](https://github.com/RcppCore/RcppArmadillo)

configure

+9-9
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.8.4.0.
3+
# Generated by GNU Autoconf 2.71 for RcppArmadillo 14.0.0-1.
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.8.4.0'
614-
PACKAGE_STRING='RcppArmadillo 0.12.8.4.0'
613+
PACKAGE_VERSION='14.0.0-1'
614+
PACKAGE_STRING='RcppArmadillo 14.0.0-1'
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.8.4.0 to adapt to many kinds of systems.
1232+
\`configure' configures RcppArmadillo 14.0.0-1 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.8.4.0:";;
1294+
short | recursive ) echo "Configuration of RcppArmadillo 14.0.0-1:";;
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.8.4.0
1375+
RcppArmadillo configure 14.0.0-1
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.8.4.0, which was
1489+
It was created by RcppArmadillo $as_me 14.0.0-1, 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.8.4.0, which was
3947+
This file was extended by RcppArmadillo $as_me 14.0.0-1, 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.8.4.0
4002+
RcppArmadillo config.status 14.0.0-1
40034003
configured by $0, generated by GNU Autoconf 2.71,
40044004
with options \\"\$ac_cs_config\\"
40054005

configure.ac

+1-1
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.8.4.0],[[email protected]])
14+
AC_INIT([RcppArmadillo],[14.0.0-1],[[email protected]])
1515

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

inst/NEWS.Rd

+21
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
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 14.0.0-1 (2024-07-05)}{
7+
\itemize{
8+
\item Upgraded to Armadillo release 14.0.0 (Stochastic Parrot)
9+
\itemize{
10+
\item C++14 is now the minimum recommended C++ standard
11+
\item Faster handling of compound expressions by \code{as_scalar()},
12+
\code{accu()}, \code{dot()}
13+
\item Faster interactions between sparse and dense matrices
14+
\item Expanded \code{stddev()} to handle sparse matrices
15+
\item Expanded relational operators to handle expressions between
16+
sparse matrices and scalars
17+
\item Added \code{.as_dense()} to obtain dense vector/matrix
18+
representation of any sparse matrix expression
19+
\item Updated physical constants to NIST 2022 CODATA values
20+
}
21+
\item New package version numbering scheme following upstream versions
22+
\item Re-enabling \code{ARMA_IGNORE_DEPRECATED_MARKE} for silent CRAN
23+
builds
24+
}
25+
}
26+
627
\section{Changes in RcppArmadillo version 0.12.8.4.0 (2024-05-30)}{
728
\itemize{
829
\item Upgraded to Armadillo release 12.8.4 (Cortisol Injector)

inst/include/RcppArmadillo/interface/RcppArmadilloForward.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
// for details) then defining the following macro will help. You can add a
5353
// #define in your source code before including the RcppArmadillo header, or add
5454
// a -DARMA_IGNORE_DEPRECATED_MARKER to the PKG_CPPFLAGS in src/Makevars.
55-
//#define ARMA_IGNORE_DEPRECATED_MARKER
55+
// Renabling globally for 14.0.0 release
56+
#define ARMA_IGNORE_DEPRECATED_MARKER
5657

5758
#include "armadillo"
5859

inst/include/armadillo_bits/arma_version.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222

2323

24-
#define ARMA_VERSION_MAJOR 13
25-
#define ARMA_VERSION_MINOR 91
24+
#define ARMA_VERSION_MAJOR 14
25+
#define ARMA_VERSION_MINOR 0
2626
#define ARMA_VERSION_PATCH 0
27-
#define ARMA_VERSION_NAME "14.0-RC1"
27+
#define ARMA_VERSION_NAME "Stochastic Parrot"
2828

2929

3030

inst/include/armadillo_bits/config.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@
319319
#endif
320320

321321
#if defined(ARMA_DONT_CHECK_CONFORMANCE)
322+
#if defined(ARMA_CHECK_CONFORMANCE) && (ARMA_WARN_LEVEL >= 2)
323+
#pragma message ("WARNING: conformance checks disabled")
324+
#endif
325+
322326
#undef ARMA_CHECK_CONFORMANCE
323327
#endif
324328

inst/include/armadillo_bits/op_reshape_meat.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ op_reshape::apply_mat_inplace(Mat<eT>& A, const uword new_n_rows, const uword ne
8181
{
8282
arma_debug_sigprint();
8383

84+
arma_conform_check( (A.vec_state == 1) && (new_n_cols != 1), "reshape(): requested size is not compatible with column vector layout" );
85+
arma_conform_check( (A.vec_state == 2) && (new_n_rows != 1), "reshape(): requested size is not compatible with row vector layout" );
86+
8487
const uword new_n_elem = new_n_rows * new_n_cols;
8588

8689
if(A.n_elem == new_n_elem) { A.set_size(new_n_rows, new_n_cols); return; }

inst/include/armadillo_bits/op_resize_meat.hpp

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ op_resize::apply_mat_inplace(Mat<eT>& A, const uword new_n_rows, const uword new
5858

5959
if( (A.n_rows == new_n_rows) && (A.n_cols == new_n_cols) ) { return; }
6060

61+
arma_conform_check( (A.vec_state == 1) && (new_n_cols != 1), "resize(): requested size is not compatible with column vector layout" );
62+
arma_conform_check( (A.vec_state == 2) && (new_n_rows != 1), "resize(): requested size is not compatible with row vector layout" );
63+
6164
if(A.is_empty()) { A.zeros(new_n_rows, new_n_cols); return; }
6265

6366
Mat<eT> B;

inst/include/armadillo_bits/spop_relational_meat.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
\
5454
if((cur_pos - last_pos) > offset)\
5555
{\
56-
arrayops::inplace_set(tmp.memptr() + last_pos + offset, zero_comp_val, cur_pos - last_pos - offset);\
56+
arrayops::inplace_set( (tmp.memptr() + last_pos + offset), zero_comp_val, (cur_pos - last_pos - offset) );\
5757
}\
5858
\
5959
tmp.at(cur_pos) = (k operator_rel (*it)) ? uword(1) : uword(0);\
@@ -62,9 +62,9 @@
6262
offset = 1;\
6363
}\
6464
\
65-
if(last_pos != (n_elem-1))\
65+
if(last_pos < n_elem)\
6666
{\
67-
arrayops::inplace_set(tmp.memptr() + last_pos + offset, zero_comp_val, (n_elem - last_pos));\
67+
arrayops::inplace_set( (tmp.memptr() + last_pos + offset), zero_comp_val, (n_elem - last_pos - offset) );\
6868
}\
6969
\
7070
out = tmp;\
@@ -94,7 +94,7 @@
9494
\
9595
if((cur_pos - last_pos) > offset)\
9696
{\
97-
arrayops::inplace_set(tmp.memptr() + last_pos + offset, zero_comp_val, cur_pos - last_pos - offset);\
97+
arrayops::inplace_set( (tmp.memptr() + last_pos + offset), zero_comp_val, (cur_pos - last_pos - offset) );\
9898
}\
9999
\
100100
tmp.at(cur_pos) = ((*it) operator_rel k) ? uword(1) : uword(0);\
@@ -103,9 +103,9 @@
103103
offset = 1;\
104104
}\
105105
\
106-
if(last_pos != (n_elem-1))\
106+
if(last_pos < n_elem)\
107107
{\
108-
arrayops::inplace_set(tmp.memptr() + last_pos + offset, zero_comp_val, (n_elem - last_pos));\
108+
arrayops::inplace_set( (tmp.memptr() + last_pos + offset), zero_comp_val, (n_elem - last_pos - offset) );\
109109
}\
110110
\
111111
out = tmp;\

0 commit comments

Comments
 (0)