Skip to content

Commit 12268f2

Browse files
authored
Merge pull request #460 from RcppCore/feature/arma_14.2.x_sync
Sync with Armadillo 14.2.x branch
2 parents 05aa195 + 9e6443f commit 12268f2

File tree

15 files changed

+93
-38
lines changed

15 files changed

+93
-38
lines changed

ChangeLog

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

312
* DESCRIPTION (Version, Date): RcppArmadillo 14.2.1-1

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: 14.2.1-1
5-
Date: 2024-11-24
4+
Version: 14.2.2-1
5+
Date: 2024-12-05
66
Authors@R: c(person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "[email protected]",
77
comment = c(ORCID = "0000-0001-6419-907X")),
88
person("Romain", "Francois", role = "aut",

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 14.2.1-1.
3+
# Generated by GNU Autoconf 2.71 for RcppArmadillo 14.2.2-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='14.2.1-1'
614-
PACKAGE_STRING='RcppArmadillo 14.2.1-1'
613+
PACKAGE_VERSION='14.2.2-1'
614+
PACKAGE_STRING='RcppArmadillo 14.2.2-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 14.2.1-1 to adapt to many kinds of systems.
1232+
\`configure' configures RcppArmadillo 14.2.2-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 14.2.1-1:";;
1294+
short | recursive ) echo "Configuration of RcppArmadillo 14.2.2-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 14.2.1-1
1375+
RcppArmadillo configure 14.2.2-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 14.2.1-1, which was
1489+
It was created by RcppArmadillo $as_me 14.2.2-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 14.2.1-1, which was
3947+
This file was extended by RcppArmadillo $as_me 14.2.2-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 14.2.1-1
4002+
RcppArmadillo config.status 14.2.2-1
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],[14.2.1-1],[[email protected]])
14+
AC_INIT([RcppArmadillo],[14.2.2-1],[[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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@
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.2.2-1 (2024-12-05)}{
7+
\itemize{
8+
\item Upgraded to Armadillo release 14.2.2 (Smooth Caffeine)
9+
\itemize{
10+
\item Workarounds for regressions in pre-release versions of GCC 15
11+
\item More selective detection of symmetric/hermitian matrices by various functions
12+
}
13+
}
14+
}
15+
616
\section{Changes in RcppArmadillo version 14.2.1-1 (2024-11-24) (GitHub Only)}{
717
\itemize{
818
\item Upgraded to Armadillo release 14.2.1 (Smooth Caffeine)
919
\itemize{
10-
Fix for \code{index_min()} and \code{index_max()} to ensure that the
20+
\item Fix for \code{index_min()} and \code{index_max()} to ensure that the
1121
first index of equal extremum values is found
1222
}
1323
}

inst/include/armadillo_bits/Col_bones.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class Col<eT>::fixed : public Col<eT>
187187
{
188188
private:
189189

190+
using Mat<eT>::mem_local;
191+
190192
static constexpr bool use_extra = (fixed_n_elem > arma_config::mat_prealloc);
191193

192194
arma_align_mem eT mem_local_extra[ (use_extra) ? fixed_n_elem : 1 ];

inst/include/armadillo_bits/Col_meat.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,11 +1345,11 @@ Col<eT>::fixed<fixed_n_elem>::fixed(const fill::fill_class<fill_type>&)
13451345
{
13461346
arma_debug_sigprint_this(this);
13471347

1348-
if(is_same_type<fill_type, fill::fill_zeros>::yes) { (*this).zeros(); }
1349-
if(is_same_type<fill_type, fill::fill_ones >::yes) { (*this).ones(); }
1350-
if(is_same_type<fill_type, fill::fill_eye >::yes) { (*this).eye(); }
1351-
if(is_same_type<fill_type, fill::fill_randu>::yes) { (*this).randu(); }
1352-
if(is_same_type<fill_type, fill::fill_randn>::yes) { (*this).randn(); }
1348+
if(is_same_type<fill_type, fill::fill_zeros>::yes) { (*this).zeros(); }
1349+
if(is_same_type<fill_type, fill::fill_ones >::yes) { (*this).ones(); }
1350+
if(is_same_type<fill_type, fill::fill_eye >::yes) { Mat<eT>::eye(); }
1351+
if(is_same_type<fill_type, fill::fill_randu>::yes) { Mat<eT>::randu(); }
1352+
if(is_same_type<fill_type, fill::fill_randn>::yes) { Mat<eT>::randn(); }
13531353
}
13541354

13551355

inst/include/armadillo_bits/Cube_bones.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ class Cube<eT>::fixed : public Cube<eT>
485485
{
486486
private:
487487

488+
using Cube<eT>::mat_ptrs_local;
489+
using Cube<eT>::mem_local;
490+
488491
static constexpr uword fixed_n_elem = fixed_n_rows * fixed_n_cols * fixed_n_slices;
489492
static constexpr uword fixed_n_elem_slice = fixed_n_rows * fixed_n_cols;
490493

inst/include/armadillo_bits/Cube_meat.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,10 +5412,10 @@ Cube<eT>::fixed<fixed_n_rows, fixed_n_cols, fixed_n_slices>::fixed(const fill::f
54125412

54135413
mem_setup();
54145414

5415-
if(is_same_type<fill_type, fill::fill_zeros>::yes) { (*this).zeros(); }
5416-
if(is_same_type<fill_type, fill::fill_ones >::yes) { (*this).ones(); }
5417-
if(is_same_type<fill_type, fill::fill_randu>::yes) { (*this).randu(); }
5418-
if(is_same_type<fill_type, fill::fill_randn>::yes) { (*this).randn(); }
5415+
if(is_same_type<fill_type, fill::fill_zeros>::yes) { Cube<eT>::zeros(); }
5416+
if(is_same_type<fill_type, fill::fill_ones >::yes) { Cube<eT>::ones(); }
5417+
if(is_same_type<fill_type, fill::fill_randu>::yes) { Cube<eT>::randu(); }
5418+
if(is_same_type<fill_type, fill::fill_randn>::yes) { Cube<eT>::randn(); }
54195419

54205420
arma_static_check( (is_same_type<fill_type, fill::fill_eye>::yes), "Cube::fixed::fixed(): unsupported fill type" );
54215421
}

inst/include/armadillo_bits/Mat_bones.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ class Mat<eT>::fixed : public Mat<eT>
825825
{
826826
private:
827827

828+
using Mat<eT>::mem_local;
829+
828830
static constexpr uword fixed_n_elem = fixed_n_rows * fixed_n_cols;
829831
static constexpr bool use_extra = (fixed_n_elem > arma_config::mat_prealloc);
830832

0 commit comments

Comments
 (0)