formally deprecate undocumented forms of .min() and .max()
This commit is contained in:
@@ -127,11 +127,11 @@ struct Base
|
||||
arma_warn_unused inline elem_type min() const;
|
||||
arma_warn_unused inline elem_type max() const;
|
||||
|
||||
inline elem_type min(uword& index_of_min_val) const;
|
||||
inline elem_type max(uword& index_of_max_val) const;
|
||||
arma_frown("use .index_min() instead") inline elem_type min(uword& index_of_min_val) const;
|
||||
arma_frown("use .index_max() instead") inline elem_type max(uword& index_of_max_val) const;
|
||||
|
||||
inline elem_type min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
inline elem_type max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
arma_deprecated inline elem_type min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
arma_deprecated inline elem_type max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
|
||||
arma_warn_unused inline uword index_min() const;
|
||||
arma_warn_unused inline uword index_max() const;
|
||||
|
||||
@@ -387,12 +387,11 @@ class Cube : public BaseCube< eT, Cube<eT> >
|
||||
arma_warn_unused inline eT min() const;
|
||||
arma_warn_unused inline eT max() const;
|
||||
|
||||
inline eT min(uword& index_of_min_val) const;
|
||||
inline eT max(uword& index_of_max_val) const;
|
||||
|
||||
inline eT min(uword& row_of_min_val, uword& col_of_min_val, uword& slice_of_min_val) const;
|
||||
inline eT max(uword& row_of_max_val, uword& col_of_max_val, uword& slice_of_max_val) const;
|
||||
arma_frown("use .index_min() instead") inline eT min(uword& index_of_min_val) const;
|
||||
arma_frown("use .index_max() instead") inline eT max(uword& index_of_max_val) const;
|
||||
|
||||
arma_deprecated inline eT min(uword& row_of_min_val, uword& col_of_min_val, uword& slice_of_min_val) const;
|
||||
arma_deprecated inline eT max(uword& row_of_max_val, uword& col_of_max_val, uword& slice_of_max_val) const;
|
||||
|
||||
arma_cold inline bool save(const std::string name, const file_type type = arma_binary) const;
|
||||
arma_cold inline bool save(const hdf5_name& spec, const file_type type = hdf5_binary) const;
|
||||
|
||||
@@ -541,11 +541,11 @@ class Mat : public Base< eT, Mat<eT> >
|
||||
arma_warn_unused inline eT min() const;
|
||||
arma_warn_unused inline eT max() const;
|
||||
|
||||
inline eT min(uword& index_of_min_val) const;
|
||||
inline eT max(uword& index_of_max_val) const;
|
||||
arma_frown("use .index_min() instead") inline eT min(uword& index_of_min_val) const;
|
||||
arma_frown("use .index_max() instead") inline eT max(uword& index_of_max_val) const;
|
||||
|
||||
inline eT min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
inline eT max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
arma_deprecated inline eT min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
arma_deprecated inline eT max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
|
||||
|
||||
arma_cold inline bool save(const std::string name, const file_type type = arma_binary) const;
|
||||
|
||||
@@ -76,11 +76,11 @@ struct SpBase
|
||||
arma_warn_unused inline elem_type min() const;
|
||||
arma_warn_unused inline elem_type max() const;
|
||||
|
||||
inline elem_type min(uword& index_of_min_val) const;
|
||||
inline elem_type max(uword& index_of_max_val) const;
|
||||
arma_frown("use .index_min() instead") inline elem_type min(uword& index_of_min_val) const;
|
||||
arma_frown("use .index_max() instead") inline elem_type max(uword& index_of_max_val) const;
|
||||
|
||||
inline elem_type min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
inline elem_type max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
arma_deprecated inline elem_type min(uword& row_of_min_val, uword& col_of_min_val) const;
|
||||
arma_deprecated inline elem_type max(uword& row_of_max_val, uword& col_of_max_val) const;
|
||||
|
||||
arma_warn_unused inline uword index_min() const;
|
||||
arma_warn_unused inline uword index_max() const;
|
||||
|
||||
@@ -428,8 +428,8 @@ class subview_col : public subview<eT>
|
||||
arma_warn_unused inline eT min() const;
|
||||
arma_warn_unused inline eT max() const;
|
||||
|
||||
inline eT min(uword& index_of_min_val) const;
|
||||
inline eT max(uword& index_of_max_val) const;
|
||||
arma_frown("use .index_min() instead") inline eT min(uword& index_of_min_val) const;
|
||||
arma_frown("use .index_max() instead") inline eT max(uword& index_of_max_val) const;
|
||||
|
||||
arma_warn_unused inline uword index_min() const;
|
||||
arma_warn_unused inline uword index_max() const;
|
||||
|
||||
Reference in New Issue
Block a user