@@ -190,8 +190,8 @@ class Mat : public Base< eT, Mat<eT> >
190
190
inline Mat& operator /=(const spdiagview<eT>& X);
191
191
192
192
193
- arma_frown (" use braced initialiser list instead" ) inline mat_injector<Mat> operator <<(const eT val);
194
- arma_frown (" use braced initialiser list instead" ) inline mat_injector<Mat> operator <<(const injector_end_of_row<>& x);
193
+ [[deprecated (" use braced initialiser list instead" )]] inline mat_injector<Mat> operator <<(const eT val);
194
+ [[deprecated (" use braced initialiser list instead" )]] inline mat_injector<Mat> operator <<(const injector_end_of_row<>& x);
195
195
196
196
197
197
arma_inline subview_row<eT> row (const uword row_num);
@@ -310,8 +310,8 @@ class Mat : public Base< eT, Mat<eT> >
310
310
template <typename T1> inline void shed_rows (const Base<uword, T1>& indices);
311
311
template <typename T1> inline void shed_cols (const Base<uword, T1>& indices);
312
312
313
- arma_frown (" use insert_rows(row_num, N) instead" ) inline void insert_rows (const uword row_num, const uword N, const bool set_to_zero);
314
- arma_frown (" use insert_cols(col_num, N) instead" ) inline void insert_cols (const uword col_num, const uword N, const bool set_to_zero);
313
+ [[deprecated (" use insert_rows(row_num, N) instead" )]] inline void insert_rows (const uword row_num, const uword N, const bool set_to_zero);
314
+ [[deprecated (" use insert_cols(col_num, N) instead" )]] inline void insert_cols (const uword col_num, const uword N, const bool set_to_zero);
315
315
316
316
inline void insert_rows (const uword row_num, const uword N);
317
317
inline void insert_cols (const uword col_num, const uword N);
@@ -485,7 +485,7 @@ class Mat : public Base< eT, Mat<eT> >
485
485
inline Mat& reshape (const uword new_n_rows, const uword new_n_cols);
486
486
inline Mat& reshape (const SizeMat& s);
487
487
488
- arma_frown (" use reshape(n_rows, n_cols) instead" ) inline void reshape (const uword new_n_rows, const uword new_n_cols, const uword dim); // !< NOTE: don't use this form: it will be removed
488
+ [[deprecated (" use reshape(n_rows, n_cols) instead" )]] inline void reshape (const uword new_n_rows, const uword new_n_cols, const uword dim); // !< NOTE: don't use this form: it will be removed
489
489
490
490
491
491
template <typename functor> inline Mat& for_each (functor F);
@@ -541,11 +541,11 @@ class Mat : public Base< eT, Mat<eT> >
541
541
arma_warn_unused inline eT min () const ;
542
542
arma_warn_unused inline eT max () const ;
543
543
544
- arma_frown (" use .index_min() instead" ) inline eT min (uword& index_of_min_val) const ;
545
- arma_frown (" use .index_max() instead" ) inline eT max (uword& index_of_max_val) const ;
544
+ [[deprecated (" use .index_min() instead" )]] inline eT min (uword& index_of_min_val) const ;
545
+ [[deprecated (" use .index_max() instead" )]] inline eT max (uword& index_of_max_val) const ;
546
546
547
- arma_frown (" use .index_min() with ind2sub() instead" ) inline eT min (uword& row_of_min_val, uword& col_of_min_val) const ;
548
- arma_frown (" use .index_max() with ind2sub() instead" ) inline eT max (uword& row_of_max_val, uword& col_of_max_val) const ;
547
+ [[deprecated (" use .index_min() with ind2sub() instead" )]] inline eT min (uword& row_of_min_val, uword& col_of_min_val) const ;
548
+ [[deprecated (" use .index_max() with ind2sub() instead" )]] inline eT max (uword& row_of_max_val, uword& col_of_max_val) const ;
549
549
550
550
551
551
arma_cold inline bool save (const std::string name, const file_type type = arma_binary) const ;
@@ -558,15 +558,15 @@ class Mat : public Base< eT, Mat<eT> >
558
558
arma_cold inline bool load (const csv_name& spec, const file_type type = csv_ascii);
559
559
arma_cold inline bool load ( std::istream& is, const file_type type = auto_detect);
560
560
561
- arma_frown (" use save() instead" ) inline bool quiet_save (const std::string name, const file_type type = arma_binary) const ;
562
- arma_frown (" use save() instead" ) inline bool quiet_save (const hdf5_name& spec, const file_type type = hdf5_binary) const ;
563
- arma_frown (" use save() instead" ) inline bool quiet_save (const csv_name& spec, const file_type type = csv_ascii) const ;
564
- arma_frown (" use save() instead" ) inline bool quiet_save ( std::ostream& os, const file_type type = arma_binary) const ;
561
+ [[deprecated (" use save() instead" )]] inline bool quiet_save (const std::string name, const file_type type = arma_binary) const ;
562
+ [[deprecated (" use save() instead" )]] inline bool quiet_save (const hdf5_name& spec, const file_type type = hdf5_binary) const ;
563
+ [[deprecated (" use save() instead" )]] inline bool quiet_save (const csv_name& spec, const file_type type = csv_ascii) const ;
564
+ [[deprecated (" use save() instead" )]] inline bool quiet_save ( std::ostream& os, const file_type type = arma_binary) const ;
565
565
566
- arma_frown (" use load() instead" ) inline bool quiet_load (const std::string name, const file_type type = auto_detect);
567
- arma_frown (" use load() instead" ) inline bool quiet_load (const hdf5_name& spec, const file_type type = hdf5_binary);
568
- arma_frown (" use load() instead" ) inline bool quiet_load (const csv_name& spec, const file_type type = csv_ascii);
569
- arma_frown (" use load() instead" ) inline bool quiet_load ( std::istream& is, const file_type type = auto_detect);
566
+ [[deprecated (" use load() instead" )]] inline bool quiet_load (const std::string name, const file_type type = auto_detect);
567
+ [[deprecated (" use load() instead" )]] inline bool quiet_load (const hdf5_name& spec, const file_type type = hdf5_binary);
568
+ [[deprecated (" use load() instead" )]] inline bool quiet_load (const csv_name& spec, const file_type type = csv_ascii);
569
+ [[deprecated (" use load() instead" )]] inline bool quiet_load ( std::istream& is, const file_type type = auto_detect);
570
570
571
571
572
572
// for container-like functionality
0 commit comments