Skip to content

Commit 9be3e3e

Browse files
authored
RcppArmadillo 15.2.0-0 with Armadillo 15.2 (#494)
* Armadillo 15.2 * RcppArmadillo 15.2.0-0 (GitHub-only)
1 parent 554e7c1 commit 9be3e3e

File tree

16 files changed

+114
-67
lines changed

16 files changed

+114
-67
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2025-10-20 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): RcppArmadillo 15.2.0-0
4+
* inst/NEWS.Rd: Idem
5+
* configure.ac: Idem
6+
* configure: Idem
7+
8+
* inst/include/current/: Sync with Armadillo 15.2
9+
110
2025-10-17 Dirk Eddelbuettel <[email protected]>
211

312
* src/RcppArmadillo.cpp (armadillo_version_typed): Added

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.72 for RcppArmadillo 15.1.99-1.
3+
# Generated by GNU Autoconf 2.72 for RcppArmadillo 15.2.0-0.
44
#
55
# Report bugs to <[email protected]>.
66
#
@@ -603,8 +603,8 @@ MAKEFLAGS=
603603
# Identity of this package.
604604
PACKAGE_NAME='RcppArmadillo'
605605
PACKAGE_TARNAME='rcpparmadillo'
606-
PACKAGE_VERSION='15.1.99-1'
607-
PACKAGE_STRING='RcppArmadillo 15.1.99-1'
606+
PACKAGE_VERSION='15.2.0-0'
607+
PACKAGE_STRING='RcppArmadillo 15.2.0-0'
608608
PACKAGE_BUGREPORT='[email protected]'
609609
PACKAGE_URL=''
610610

@@ -1221,7 +1221,7 @@ if test "$ac_init_help" = "long"; then
12211221
# Omit some internal or obsolete options to make the list less imposing.
12221222
# This message is too long to be a string in the A/UX 3.1 sh.
12231223
cat <<_ACEOF
1224-
'configure' configures RcppArmadillo 15.1.99-1 to adapt to many kinds of systems.
1224+
'configure' configures RcppArmadillo 15.2.0-0 to adapt to many kinds of systems.
12251225
12261226
Usage: $0 [OPTION]... [VAR=VALUE]...
12271227
@@ -1283,7 +1283,7 @@ fi
12831283

12841284
if test -n "$ac_init_help"; then
12851285
case $ac_init_help in
1286-
short | recursive ) echo "Configuration of RcppArmadillo 15.1.99-1:";;
1286+
short | recursive ) echo "Configuration of RcppArmadillo 15.2.0-0:";;
12871287
esac
12881288
cat <<\_ACEOF
12891289
@@ -1364,7 +1364,7 @@ fi
13641364
test -n "$ac_init_help" && exit $ac_status
13651365
if $ac_init_version; then
13661366
cat <<\_ACEOF
1367-
RcppArmadillo configure 15.1.99-1
1367+
RcppArmadillo configure 15.2.0-0
13681368
generated by GNU Autoconf 2.72
13691369
13701370
Copyright (C) 2023 Free Software Foundation, Inc.
@@ -1480,7 +1480,7 @@ cat >config.log <<_ACEOF
14801480
This file contains any messages produced by compilers while
14811481
running configure, to aid debugging if configure makes a mistake.
14821482
1483-
It was created by RcppArmadillo $as_me 15.1.99-1, which was
1483+
It was created by RcppArmadillo $as_me 15.2.0-0, which was
14841484
generated by GNU Autoconf 2.72. Invocation command line was
14851485
14861486
$ $0$ac_configure_args_raw
@@ -3977,7 +3977,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39773977
# report actual input values of CONFIG_FILES etc. instead of their
39783978
# values after options handling.
39793979
ac_log="
3980-
This file was extended by RcppArmadillo $as_me 15.1.99-1, which was
3980+
This file was extended by RcppArmadillo $as_me 15.2.0-0, which was
39813981
generated by GNU Autoconf 2.72. Invocation command line was
39823982
39833983
CONFIG_FILES = $CONFIG_FILES
@@ -4032,7 +4032,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
40324032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40334033
ac_cs_config='$ac_cs_config_escaped'
40344034
ac_cs_version="\\
4035-
RcppArmadillo config.status 15.1.99-1
4035+
RcppArmadillo config.status 15.2.0-0
40364036
configured by $0, generated by GNU Autoconf 2.72,
40374037
with options \\"\$ac_cs_config\\"
40384038

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],[15.1.99-1],[[email protected]])
14+
AC_INIT([RcppArmadillo],[15.2.0-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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +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 15.1.99-1 (2025-10-16) (GitHub Only)}{
6+
\section{Changes in RcppArmadillo version 15.2.0-0 (2025-10-20) (GitHub Only)}{
77
\itemize{
8-
\item Upgraded to Armadillo release 15.2.0 (RC1 right now)
8+
\item Upgraded to Armadillo release 15.2.0 (Medium Roast Deluxe)
9+
\itemize{
10+
\item Added \code{rande()} for generating matrices with elements from
11+
exponential distributions
12+
\item \code{shift()} has been deprecated in favour of
13+
\code{circshift()}, for consistency with Matlab/Octave
14+
\item Reworked detection of aliasing, leading to more efficient
15+
compiled code
16+
}
917
}
1018
}
1119

inst/include/current/armadillo_bits/Col_meat.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,13 @@ Col<eT>::end_row(const uword row_num) const
12641264

12651265

12661266

1267+
1268+
1269+
1270+
//
1271+
1272+
1273+
12671274
template<typename eT>
12681275
template<uword fixed_n_elem>
12691276
arma_inline
@@ -1859,6 +1866,10 @@ Col<eT>::fixed<fixed_n_elem>::ones()
18591866

18601867

18611868

1869+
//
1870+
1871+
1872+
18621873
template<typename eT>
18631874
inline
18641875
Col<eT>::Col(const arma_fixed_indicator&, const uword in_n_elem, const eT* in_mem)

inst/include/current/armadillo_bits/Cube_meat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3148,7 +3148,7 @@ Cube<eT>::Cube(const GlueCube<T1, T2, glue_type>& X)
31483148
{
31493149
arma_debug_sigprint_this(this);
31503150

3151-
this->operator=(X);
3151+
(*this).operator=(X);
31523152
}
31533153

31543154

inst/include/current/armadillo_bits/Mat_bones.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Mat : public Base< eT, Mat<eT> >
120120
template<typename T1, typename T2> inline explicit Mat(const Base<pod_type,T1>& A, const Base<pod_type,T2>& B, const arma_vec_indicator&, const uhword in_vec_state);
121121
template<typename T1, typename T2> inline explicit Mat(const Base<pod_type,T1>& A, const Base<pod_type,T2>& B);
122122

123-
inline explicit Mat(const subview<eT>& X, const bool use_colmem); // only to be used by the quasi_unwrap class
123+
inline explicit Mat(const subview<eT>& X, const bool reuse_mem); // only to be used by quasi_unwrap and partial_unwrap
124124

125125
inline Mat(const subview<eT>& X, const arma_vec_indicator&, const uhword in_vec_state);
126126
inline Mat(const subview<eT>& X);

inst/include/current/armadillo_bits/Mat_meat.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,18 +2021,18 @@ Mat<eT>::Mat(const Base<typename Mat<eT>::pod_type,T1>& A, const Base<typename M
20212021

20222022
template<typename eT>
20232023
inline
2024-
Mat<eT>::Mat(const subview<eT>& X, const bool use_colmem)
2024+
Mat<eT>::Mat(const subview<eT>& X, const bool reuse_mem)
20252025
: n_rows(X.n_rows)
20262026
, n_cols(X.n_cols)
20272027
, n_elem(X.n_elem)
20282028
, n_alloc(0)
20292029
, vec_state(0)
2030-
, mem_state(use_colmem ? 3 : 0)
2031-
, mem (use_colmem ? X.colptr(0) : nullptr)
2030+
, mem_state(reuse_mem ? 3 : 0 )
2031+
, mem (reuse_mem ? X.colptr(0) : nullptr)
20322032
{
20332033
arma_debug_sigprint_this(this);
20342034

2035-
if(use_colmem)
2035+
if(reuse_mem)
20362036
{
20372037
arma_debug_print("Mat::Mat(): using existing memory in a submatrix");
20382038
}

inst/include/current/armadillo_bits/Row_bones.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ class Row : public Mat<eT>
8585
template<typename T1, typename T2>
8686
inline explicit Row(const Base<pod_type,T1>& A, const Base<pod_type,T2>& B);
8787

88-
inline explicit Row(const subview<eT>& X, const bool use_colmem); // only to be used by the quasi_unwrap class
89-
9088
template<typename T1> inline Row(const BaseCube<eT,T1>& X);
9189
template<typename T1> inline Row& operator=(const BaseCube<eT,T1>& X);
9290

@@ -171,6 +169,9 @@ class Row : public Mat<eT>
171169
inline const_row_iterator end_row (const uword row_num) const;
172170

173171

172+
inline explicit Row(const subview<eT>& X, const bool reuse_mem); // only to be used by the partial_unwrap class
173+
174+
174175
template<uword fixed_n_elem> class fixed;
175176

176177

inst/include/current/armadillo_bits/Row_meat.hpp

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -610,16 +610,6 @@ Row<eT>::Row
610610

611611

612612

613-
template<typename eT>
614-
inline
615-
Row<eT>::Row(const subview<eT>& X, const bool use_colmem)
616-
: Mat<eT>(X, use_colmem)
617-
{
618-
arma_debug_sigprint();
619-
}
620-
621-
622-
623613
template<typename eT>
624614
template<typename T1>
625615
inline
@@ -1274,6 +1264,20 @@ Row<eT>::end_row(const uword row_num) const
12741264

12751265

12761266

1267+
template<typename eT>
1268+
inline
1269+
Row<eT>::Row(const subview<eT>& X, const bool reuse_mem)
1270+
: Mat<eT>(X, reuse_mem)
1271+
{
1272+
arma_debug_sigprint_this(this);
1273+
}
1274+
1275+
1276+
1277+
//
1278+
1279+
1280+
12771281
template<typename eT>
12781282
template<uword fixed_n_elem>
12791283
arma_inline
@@ -1869,6 +1873,10 @@ Row<eT>::fixed<fixed_n_elem>::ones()
18691873

18701874

18711875

1876+
//
1877+
1878+
1879+
18721880
template<typename eT>
18731881
inline
18741882
Row<eT>::Row(const arma_fixed_indicator&, const uword in_n_elem, const eT* in_mem)

0 commit comments

Comments
 (0)