Skip to content

Commit 84e8cff

Browse files
committed
Armadillo 14.2.3
1 parent 12268f2 commit 84e8cff

File tree

12 files changed

+60
-40
lines changed

12 files changed

+60
-40
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-02-05 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/armadillo_bits/: Armadillo 14.2.3
4+
15
2024-12-05 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): RcppArmadillo 14.2.2-1

inst/include/armadillo_bits/Cube_meat.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,7 +3448,7 @@ Cube<eT>::at_alt(const uword i) const
34483448

34493449

34503450

3451-
//! linear element accessor (treats the cube as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
3451+
//! linear element accessor (treats the cube as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
34523452
template<typename eT>
34533453
arma_inline
34543454
eT&
@@ -3461,7 +3461,7 @@ Cube<eT>::operator() (const uword i)
34613461

34623462

34633463

3464-
//! linear element accessor (treats the cube as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
3464+
//! linear element accessor (treats the cube as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
34653465
template<typename eT>
34663466
arma_inline
34673467
const eT&
@@ -3517,7 +3517,7 @@ Cube<eT>::at(const uword i) const
35173517

35183518

35193519

3520-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
3520+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
35213521
template<typename eT>
35223522
arma_inline
35233523
eT&
@@ -3537,7 +3537,7 @@ Cube<eT>::operator() (const uword in_row, const uword in_col, const uword in_sli
35373537

35383538

35393539

3540-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
3540+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
35413541
template<typename eT>
35423542
arma_inline
35433543
const eT&

inst/include/armadillo_bits/Mat_meat.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6391,7 +6391,7 @@ Mat<eT>::at_alt(const uword ii) const
63916391

63926392

63936393

6394-
//! linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
6394+
//! linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
63956395
template<typename eT>
63966396
arma_inline
63976397
eT&
@@ -6404,7 +6404,7 @@ Mat<eT>::operator() (const uword ii)
64046404

64056405

64066406

6407-
//! linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
6407+
//! linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
64086408
template<typename eT>
64096409
arma_inline
64106410
const eT&
@@ -6460,7 +6460,7 @@ Mat<eT>::at(const uword ii) const
64606460

64616461

64626462

6463-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
6463+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
64646464
template<typename eT>
64656465
arma_inline
64666466
eT&
@@ -6473,7 +6473,7 @@ Mat<eT>::operator() (const uword in_row, const uword in_col)
64736473

64746474

64756475

6476-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
6476+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
64776477
template<typename eT>
64786478
arma_inline
64796479
const eT&

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 14
2525
#define ARMA_VERSION_MINOR 2
26-
#define ARMA_VERSION_PATCH 2
26+
#define ARMA_VERSION_PATCH 3
2727
#define ARMA_VERSION_NAME "Smooth Caffeine"
2828

2929

inst/include/armadillo_bits/compiler_setup.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,8 @@
477477
#undef major
478478

479479

480-
// optionally allow disabling of compile-time deprecation messages (not recommended)
481-
// NOTE: option 'ARMA_IGNORE_DEPRECATED_MARKER' will be removed
482-
// NOTE: disabling deprecation messages is counter-productive
480+
// WARNING: option 'ARMA_IGNORE_DEPRECATED_MARKER' will be removed;
481+
// WARNING: disabling deprecation messages is counter-productive
483482

484483
#if defined(ARMA_IGNORE_DEPRECATED_MARKER)
485484
#undef arma_deprecated

inst/include/armadillo_bits/config.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@
366366
#undef ARMA_CRIPPLED_LAPACK
367367
#endif
368368

369+
// WARNING: option ARMA_IGNORE_DEPRECATED_MARKER will be removed
370+
// WARNING: option ARMA_CRIPPLED_LAPACK will be removed
371+
369372
#if defined(ARMA_CRIPPLED_LAPACK)
370373
#if (!defined(ARMA_IGNORE_DEPRECATED_MARKER))
371374
#pragma message ("option ARMA_CRIPPLED_LAPACK is deprecated and will be removed")

inst/include/armadillo_bits/def_lapack.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,12 @@ extern "C"
919919
void arma_fortran(arma_zhetri)(const char* uplo, const blas_int* n, blas_cxd* a, const blas_int* lda, const blas_int* ipiv, blas_cxd* work, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
920920

921921
// rcond of symmetric matrix using pre-computed factorisation (real)
922-
void arma_fortran(arma_ssycon)(const char* uplo, const blas_int* n, float* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, float* work, blas_int* iwork, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
923-
void arma_fortran(arma_dsycon)(const char* uplo, const blas_int* n, double* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, double* work, blas_int* iwork, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
922+
void arma_fortran(arma_ssycon)(const char* uplo, const blas_int* n, const float* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, float* work, blas_int* iwork, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
923+
void arma_fortran(arma_dsycon)(const char* uplo, const blas_int* n, const double* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, double* work, blas_int* iwork, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
924924

925925
// rcond of hermitian matrix using pre-computed factorisation (complex)
926-
void arma_fortran(arma_checon)(const char* uplo, const blas_int* n, blas_cxf* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, blas_cxf* work, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
927-
void arma_fortran(arma_zhecon)(const char* uplo, const blas_int* n, blas_cxd* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, blas_cxd* work, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
926+
void arma_fortran(arma_checon)(const char* uplo, const blas_int* n, const blas_cxf* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, blas_cxf* work, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
927+
void arma_fortran(arma_zhecon)(const char* uplo, const blas_int* n, const blas_cxd* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, blas_cxd* work, blas_int* info, blas_len uplo_len) ARMA_NOEXCEPT;
928928

929929
#else
930930

@@ -1275,12 +1275,12 @@ extern "C"
12751275
void arma_fortran(arma_zhetri)(const char* uplo, const blas_int* n, blas_cxd* a, const blas_int* lda, const blas_int* ipiv, blas_cxd* work, blas_int* info) ARMA_NOEXCEPT;
12761276

12771277
// rcond of symmetric matrix using pre-computed factorisation (real)
1278-
void arma_fortran(arma_ssycon)(const char* uplo, const blas_int* n, float* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, float* work, blas_int* iwork, blas_int* info) ARMA_NOEXCEPT;
1279-
void arma_fortran(arma_dsycon)(const char* uplo, const blas_int* n, double* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, double* work, blas_int* iwork, blas_int* info) ARMA_NOEXCEPT;
1278+
void arma_fortran(arma_ssycon)(const char* uplo, const blas_int* n, const float* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, float* work, blas_int* iwork, blas_int* info) ARMA_NOEXCEPT;
1279+
void arma_fortran(arma_dsycon)(const char* uplo, const blas_int* n, const double* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, double* work, blas_int* iwork, blas_int* info) ARMA_NOEXCEPT;
12801280

12811281
// rcond of hermitian matrix using pre-computed factorisation (complex)
1282-
void arma_fortran(arma_checon)(const char* uplo, const blas_int* n, blas_cxf* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, blas_cxf* work, blas_int* info) ARMA_NOEXCEPT;
1283-
void arma_fortran(arma_zhecon)(const char* uplo, const blas_int* n, blas_cxd* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, blas_cxd* work, blas_int* info) ARMA_NOEXCEPT;
1282+
void arma_fortran(arma_checon)(const char* uplo, const blas_int* n, const blas_cxf* a, const blas_int* lda, const blas_int* ipiv, const float* anorm, float* rcond, blas_cxf* work, blas_int* info) ARMA_NOEXCEPT;
1283+
void arma_fortran(arma_zhecon)(const char* uplo, const blas_int* n, const blas_cxd* a, const blas_int* lda, const blas_int* ipiv, const double* anorm, double* rcond, blas_cxd* work, blas_int* info) ARMA_NOEXCEPT;
12841284

12851285
#endif
12861286
}

inst/include/armadillo_bits/field_meat.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ field<oT>::at(const uword i) const
531531

532532

533533

534-
//! linear element accessor (treats the field as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
534+
//! linear element accessor (treats the field as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
535535
template<typename oT>
536536
arma_inline
537537
oT&
@@ -544,7 +544,7 @@ field<oT>::operator() (const uword i)
544544

545545

546546

547-
//! linear element accessor (treats the field as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
547+
//! linear element accessor (treats the field as a vector); bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
548548
template<typename oT>
549549
arma_inline
550550
const oT&
@@ -557,7 +557,7 @@ field<oT>::operator() (const uword i) const
557557

558558

559559

560-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
560+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
561561
template<typename oT>
562562
arma_inline
563563
oT&
@@ -570,7 +570,7 @@ field<oT>::operator() (const uword in_row, const uword in_col)
570570

571571

572572

573-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
573+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
574574
template<typename oT>
575575
arma_inline
576576
const oT&
@@ -583,7 +583,7 @@ field<oT>::operator() (const uword in_row, const uword in_col) const
583583

584584

585585

586-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
586+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
587587
template<typename oT>
588588
arma_inline
589589
oT&
@@ -596,7 +596,7 @@ field<oT>::operator() (const uword in_row, const uword in_col, const uword in_sl
596596

597597

598598

599-
//! element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
599+
//! element accessor; bounds checking not done when ARMA_DONT_CHECK_CONFORMANCE is defined
600600
template<typename oT>
601601
arma_inline
602602
const oT&

inst/include/armadillo_bits/fn_accu.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ accu(const BaseCube<typename T1::elem_type,T1>& X)
840840

841841
if(is_Cube<typename ProxyCube<T1>::stored_type>::value)
842842
{
843-
unwrap_cube<typename ProxyCube<T1>::stored_type> tmp(P.Q);
843+
const unwrap_cube<typename ProxyCube<T1>::stored_type> tmp(P.Q);
844844

845845
return arrayops::accumulate(tmp.M.memptr(), tmp.M.n_elem);
846846
}

inst/include/armadillo_bits/gmm_full_meat.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ gmm_full<eT>::init_constants(const bool calc_chol)
937937
Mat<eT>& inv_fcov = inv_fcovs.slice(g);
938938

939939
//const bool inv_ok = auxlib::inv(tmp_inv, fcov);
940-
const bool inv_ok = auxlib::inv_sympd(tmp_inv, fcov);
940+
const bool inv_ok = auxlib::inv_sympd(tmp_inv, fcov); // using inv_sympd() instead of inv() to ensure we can do cholesky decomp via op_chol
941941

942942
eT log_det_val = eT(0);
943943
eT log_det_sign = eT(0);

0 commit comments

Comments
 (0)