Skip to content

Commit b92cf58

Browse files
committed
Armadillo 15.4.90, a first rc for 15.6.0
1 parent 094b493 commit b92cf58

31 files changed

Lines changed: 1050 additions & 796 deletions

inst/include/armadillo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ namespace arma
342342
#include "armadillo_bits/op_row_as_mat_bones.hpp"
343343
#include "armadillo_bits/op_col_as_mat_bones.hpp"
344344
#include "armadillo_bits/op_accu_bones.hpp"
345+
#include "armadillo_bits/op_permute_bones.hpp"
345346
#include "armadillo_bits/op_sp_plus_bones.hpp"
346347
#include "armadillo_bits/op_sp_minus_bones.hpp"
347348
#include "armadillo_bits/op_sp_sum_bones.hpp"
@@ -381,6 +382,7 @@ namespace arma
381382
#include "armadillo_bits/glue_mvnrnd_bones.hpp"
382383
#include "armadillo_bits/glue_quantile_bones.hpp"
383384
#include "armadillo_bits/glue_powext_bones.hpp"
385+
#include "armadillo_bits/glue_cubemul_bones.hpp"
384386

385387
#include "armadillo_bits/gmm_misc_bones.hpp"
386388
#include "armadillo_bits/gmm_diag_bones.hpp"
@@ -616,6 +618,8 @@ namespace arma
616618
#include "armadillo_bits/fn_powext.hpp"
617619
#include "armadillo_bits/fn_diags_spdiags.hpp"
618620
#include "armadillo_bits/fn_balance.hpp"
621+
#include "armadillo_bits/fn_permute.hpp"
622+
#include "armadillo_bits/fn_cubemul.hpp"
619623

620624
#include "armadillo_bits/fn_speye.hpp"
621625
#include "armadillo_bits/fn_spones.hpp"
@@ -802,6 +806,7 @@ namespace arma
802806
#include "armadillo_bits/op_row_as_mat_meat.hpp"
803807
#include "armadillo_bits/op_col_as_mat_meat.hpp"
804808
#include "armadillo_bits/op_accu_meat.hpp"
809+
#include "armadillo_bits/op_permute_meat.hpp"
805810
#include "armadillo_bits/op_sp_plus_meat.hpp"
806811
#include "armadillo_bits/op_sp_minus_meat.hpp"
807812
#include "armadillo_bits/op_sp_sum_meat.hpp"
@@ -841,6 +846,7 @@ namespace arma
841846
#include "armadillo_bits/glue_mvnrnd_meat.hpp"
842847
#include "armadillo_bits/glue_quantile_meat.hpp"
843848
#include "armadillo_bits/glue_powext_meat.hpp"
849+
#include "armadillo_bits/glue_cubemul_meat.hpp"
844850

845851
#include "armadillo_bits/gmm_misc_meat.hpp"
846852
#include "armadillo_bits/gmm_diag_meat.hpp"

inst/include/armadillo_bits/BaseCube_bones.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ struct BaseCube
5353
{
5454
arma_inline const derived& get_ref() const;
5555

56+
arma_warn_unused inline const OpCube<derived,op_htrans> t() const;
57+
arma_warn_unused inline const OpCube<derived,op_htrans> ht() const;
58+
arma_warn_unused inline const OpCube<derived,op_strans> st() const;
59+
5660
arma_cold inline void print( const std::string extra_text = "") const;
5761
arma_cold inline void print(std::ostream& user_stream, const std::string extra_text = "") const;
5862

inst/include/armadillo_bits/BaseCube_meat.hpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@ BaseCube<elem_type,derived>::get_ref() const
3131

3232

3333

34+
template<typename elem_type, typename derived>
35+
inline
36+
const OpCube<derived,op_htrans>
37+
BaseCube<elem_type,derived>::t() const
38+
{
39+
return OpCube<derived,op_htrans>( static_cast<const derived&>(*this) );
40+
}
41+
42+
43+
44+
template<typename elem_type, typename derived>
45+
inline
46+
const OpCube<derived,op_htrans>
47+
BaseCube<elem_type,derived>::ht() const
48+
{
49+
return OpCube<derived,op_htrans>( static_cast<const derived&>(*this) );
50+
}
51+
52+
53+
54+
template<typename elem_type, typename derived>
55+
inline
56+
const OpCube<derived,op_strans>
57+
BaseCube<elem_type,derived>::st() const
58+
{
59+
return OpCube<derived,op_strans>( static_cast<const derived&>(*this) );
60+
}
61+
62+
63+
3464
template<typename elem_type, typename derived>
3565
inline
3666
void

inst/include/armadillo_bits/Cube_bones.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,6 @@ class Cube : public BaseCube< eT, Cube<eT> >
406406
arma_cold inline bool load(const hdf5_name& spec, const file_type type = hdf5_binary);
407407
arma_cold inline bool load( std::istream& is, const file_type type = auto_detect);
408408

409-
[[deprecated("use save() instead")]] inline bool quiet_save(const std::string name, const file_type type = arma_binary) const;
410-
[[deprecated("use save() instead")]] inline bool quiet_save(const hdf5_name& spec, const file_type type = hdf5_binary) const;
411-
[[deprecated("use save() instead")]] inline bool quiet_save( std::ostream& os, const file_type type = arma_binary) const;
412-
413-
[[deprecated("use load() instead")]] inline bool quiet_load(const std::string name, const file_type type = auto_detect);
414-
[[deprecated("use load() instead")]] inline bool quiet_load(const hdf5_name& spec, const file_type type = hdf5_binary);
415-
[[deprecated("use load() instead")]] inline bool quiet_load( std::istream& is, const file_type type = auto_detect);
416-
417409

418410
// iterators
419411

inst/include/armadillo_bits/Cube_meat.hpp

Lines changed: 2 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -4716,7 +4716,7 @@ Cube<eT>::save(const hdf5_name& spec, const file_type type) const
47164716
{
47174717
Cube<eT> tmp;
47184718

4719-
op_strans_cube::apply_noalias(tmp, (*this));
4719+
op_strans::apply_cube_noalias(tmp, (*this));
47204720

47214721
save_okay = diskio::save_hdf5_binary(tmp, spec, err_msg);
47224722
}
@@ -4879,7 +4879,7 @@ Cube<eT>::load(const hdf5_name& spec, const file_type type)
48794879

48804880
load_okay = diskio::load_hdf5_binary(tmp, spec, err_msg);
48814881

4882-
if(load_okay) { op_strans_cube::apply_noalias((*this), tmp); }
4882+
if(load_okay) { op_strans::apply_cube_noalias((*this), tmp); }
48834883
}
48844884
else
48854885
{
@@ -4967,78 +4967,6 @@ Cube<eT>::load(std::istream& is, const file_type type)
49674967

49684968

49694969

4970-
template<typename eT>
4971-
inline
4972-
bool
4973-
Cube<eT>::quiet_save(const std::string name, const file_type type) const
4974-
{
4975-
arma_debug_sigprint();
4976-
4977-
return (*this).save(name, type);
4978-
}
4979-
4980-
4981-
4982-
template<typename eT>
4983-
inline
4984-
bool
4985-
Cube<eT>::quiet_save(const hdf5_name& spec, const file_type type) const
4986-
{
4987-
arma_debug_sigprint();
4988-
4989-
return (*this).save(spec, type);
4990-
}
4991-
4992-
4993-
4994-
template<typename eT>
4995-
inline
4996-
bool
4997-
Cube<eT>::quiet_save(std::ostream& os, const file_type type) const
4998-
{
4999-
arma_debug_sigprint();
5000-
5001-
return (*this).save(os, type);
5002-
}
5003-
5004-
5005-
5006-
template<typename eT>
5007-
inline
5008-
bool
5009-
Cube<eT>::quiet_load(const std::string name, const file_type type)
5010-
{
5011-
arma_debug_sigprint();
5012-
5013-
return (*this).load(name, type);
5014-
}
5015-
5016-
5017-
5018-
template<typename eT>
5019-
inline
5020-
bool
5021-
Cube<eT>::quiet_load(const hdf5_name& spec, const file_type type)
5022-
{
5023-
arma_debug_sigprint();
5024-
5025-
return (*this).load(spec, type);
5026-
}
5027-
5028-
5029-
5030-
template<typename eT>
5031-
inline
5032-
bool
5033-
Cube<eT>::quiet_load(std::istream& is, const file_type type)
5034-
{
5035-
arma_debug_sigprint();
5036-
5037-
return (*this).load(is, type);
5038-
}
5039-
5040-
5041-
50424970
template<typename eT>
50434971
inline
50444972
typename Cube<eT>::iterator

inst/include/armadillo_bits/Mat_bones.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -583,16 +583,6 @@ class Mat : public Base< eT, Mat<eT> >
583583
arma_cold inline bool load(const csv_name& spec, const file_type type = csv_ascii);
584584
arma_cold inline bool load( std::istream& is, const file_type type = auto_detect);
585585

586-
[[deprecated("use save() instead")]] inline bool quiet_save(const std::string name, const file_type type = arma_binary) const;
587-
[[deprecated("use save() instead")]] inline bool quiet_save(const hdf5_name& spec, const file_type type = hdf5_binary) const;
588-
[[deprecated("use save() instead")]] inline bool quiet_save(const csv_name& spec, const file_type type = csv_ascii) const;
589-
[[deprecated("use save() instead")]] inline bool quiet_save( std::ostream& os, const file_type type = arma_binary) const;
590-
591-
[[deprecated("use load() instead")]] inline bool quiet_load(const std::string name, const file_type type = auto_detect);
592-
[[deprecated("use load() instead")]] inline bool quiet_load(const hdf5_name& spec, const file_type type = hdf5_binary);
593-
[[deprecated("use load() instead")]] inline bool quiet_load(const csv_name& spec, const file_type type = csv_ascii);
594-
[[deprecated("use load() instead")]] inline bool quiet_load( std::istream& is, const file_type type = auto_detect);
595-
596586

597587
// for container-like functionality
598588

inst/include/armadillo_bits/Mat_meat.hpp

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -8990,102 +8990,6 @@ Mat<eT>::load(std::istream& is, const file_type type)
89908990

89918991

89928992

8993-
template<typename eT>
8994-
inline
8995-
bool
8996-
Mat<eT>::quiet_save(const std::string name, const file_type type) const
8997-
{
8998-
arma_debug_sigprint();
8999-
9000-
return (*this).save(name, type);
9001-
}
9002-
9003-
9004-
9005-
template<typename eT>
9006-
inline
9007-
bool
9008-
Mat<eT>::quiet_save(const hdf5_name& spec, const file_type type) const
9009-
{
9010-
arma_debug_sigprint();
9011-
9012-
return (*this).save(spec, type);
9013-
}
9014-
9015-
9016-
9017-
template<typename eT>
9018-
inline
9019-
bool
9020-
Mat<eT>::quiet_save(const csv_name& spec, const file_type type) const
9021-
{
9022-
arma_debug_sigprint();
9023-
9024-
return (*this).save(spec, type);
9025-
}
9026-
9027-
9028-
9029-
template<typename eT>
9030-
inline
9031-
bool
9032-
Mat<eT>::quiet_save(std::ostream& os, const file_type type) const
9033-
{
9034-
arma_debug_sigprint();
9035-
9036-
return (*this).save(os, type);
9037-
}
9038-
9039-
9040-
9041-
template<typename eT>
9042-
inline
9043-
bool
9044-
Mat<eT>::quiet_load(const std::string name, const file_type type)
9045-
{
9046-
arma_debug_sigprint();
9047-
9048-
return (*this).load(name, type);
9049-
}
9050-
9051-
9052-
9053-
template<typename eT>
9054-
inline
9055-
bool
9056-
Mat<eT>::quiet_load(const hdf5_name& spec, const file_type type)
9057-
{
9058-
arma_debug_sigprint();
9059-
9060-
return (*this).load(spec, type);
9061-
}
9062-
9063-
9064-
9065-
template<typename eT>
9066-
inline
9067-
bool
9068-
Mat<eT>::quiet_load(const csv_name& spec, const file_type type)
9069-
{
9070-
arma_debug_sigprint();
9071-
9072-
return (*this).load(spec, type);
9073-
}
9074-
9075-
9076-
9077-
template<typename eT>
9078-
inline
9079-
bool
9080-
Mat<eT>::quiet_load(std::istream& is, const file_type type)
9081-
{
9082-
arma_debug_sigprint();
9083-
9084-
return (*this).load(is, type);
9085-
}
9086-
9087-
9088-
90898993
template<typename eT>
90908994
inline
90918995
Mat<eT>::row_iterator::row_iterator()

inst/include/armadillo_bits/SpMat_bones.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,6 @@ class SpMat : public SpBase< eT, SpMat<eT> >
401401
arma_cold inline bool load(const csv_name& spec, const file_type type = csv_ascii);
402402
arma_cold inline bool load( std::istream& is, const file_type type = arma_binary);
403403

404-
[[deprecated("use save() instead")]] inline bool quiet_save(const std::string name, const file_type type = arma_binary) const;
405-
[[deprecated("use save() instead")]] inline bool quiet_save( std::ostream& os, const file_type type = arma_binary) const;
406-
407-
[[deprecated("use load() instead")]] inline bool quiet_load(const std::string name, const file_type type = arma_binary);
408-
[[deprecated("use load() instead")]] inline bool quiet_load( std::istream& is, const file_type type = arma_binary);
409-
410404

411405

412406
// necessary forward declarations

inst/include/armadillo_bits/SpMat_meat.hpp

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5000,54 +5000,6 @@ SpMat<eT>::load(std::istream& is, const file_type type)
50005000

50015001

50025002

5003-
template<typename eT>
5004-
inline
5005-
bool
5006-
SpMat<eT>::quiet_save(const std::string name, const file_type type) const
5007-
{
5008-
arma_debug_sigprint();
5009-
5010-
return (*this).save(name, type);
5011-
}
5012-
5013-
5014-
5015-
template<typename eT>
5016-
inline
5017-
bool
5018-
SpMat<eT>::quiet_save(std::ostream& os, const file_type type) const
5019-
{
5020-
arma_debug_sigprint();
5021-
5022-
return (*this).save(os, type);
5023-
}
5024-
5025-
5026-
5027-
template<typename eT>
5028-
inline
5029-
bool
5030-
SpMat<eT>::quiet_load(const std::string name, const file_type type)
5031-
{
5032-
arma_debug_sigprint();
5033-
5034-
return (*this).load(name, type);
5035-
}
5036-
5037-
5038-
5039-
template<typename eT>
5040-
inline
5041-
bool
5042-
SpMat<eT>::quiet_load(std::istream& is, const file_type type)
5043-
{
5044-
arma_debug_sigprint();
5045-
5046-
return (*this).load(is, type);
5047-
}
5048-
5049-
5050-
50515003
/**
50525004
* Initialize the matrix to the specified size. Data is not preserved, so the matrix is assumed to be entirely sparse (empty).
50535005
*/

0 commit comments

Comments
 (0)