@@ -190,8 +190,8 @@ class Mat : public Base< eT, Mat<eT> >
190190 inline Mat& operator /=(const spdiagview<eT>& X);
191191
192192
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);
195195
196196
197197 arma_inline subview_row<eT> row (const uword row_num);
@@ -310,8 +310,8 @@ class Mat : public Base< eT, Mat<eT> >
310310 template <typename T1> inline void shed_rows (const Base<uword, T1>& indices);
311311 template <typename T1> inline void shed_cols (const Base<uword, T1>& indices);
312312
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);
315315
316316 inline void insert_rows (const uword row_num, const uword N);
317317 inline void insert_cols (const uword col_num, const uword N);
@@ -485,7 +485,7 @@ class Mat : public Base< eT, Mat<eT> >
485485 inline Mat& reshape (const uword new_n_rows, const uword new_n_cols);
486486 inline Mat& reshape (const SizeMat& s);
487487
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
489489
490490
491491 template <typename functor> inline Mat& for_each (functor F);
@@ -541,11 +541,11 @@ class Mat : public Base< eT, Mat<eT> >
541541 arma_warn_unused inline eT min () const ;
542542 arma_warn_unused inline eT max () const ;
543543
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 ;
546546
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 ;
549549
550550
551551 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> >
558558 arma_cold inline bool load (const csv_name& spec, const file_type type = csv_ascii);
559559 arma_cold inline bool load ( std::istream& is, const file_type type = auto_detect);
560560
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 ;
565565
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);
570570
571571
572572 // for container-like functionality
0 commit comments