Skip to content

Commit

Permalink
update armadillo to v12.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meisam committed May 27, 2023
1 parent 9d47211 commit a7e3e0e
Show file tree
Hide file tree
Showing 627 changed files with 56,103 additions and 29,864 deletions.
202 changes: 148 additions & 54 deletions src/armadillo/include/armadillo

Large diffs are not rendered by default.

29 changes: 22 additions & 7 deletions src/armadillo/include/armadillo_bits/BaseCube_bones.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0
//
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
Expand All @@ -22,22 +24,22 @@
template<typename elem_type, typename derived>
struct BaseCube_eval_Cube
{
arma_inline const derived& eval() const;
arma_warn_unused arma_inline const derived& eval() const;
};


template<typename elem_type, typename derived>
struct BaseCube_eval_expr
{
arma_inline Cube<elem_type> eval() const; //!< force the immediate evaluation of a delayed expression
arma_warn_unused inline Cube<elem_type> eval() const; //!< force the immediate evaluation of a delayed expression
};


template<typename elem_type, typename derived, bool condition>
struct BaseCube_eval {};

template<typename elem_type, typename derived>
struct BaseCube_eval<elem_type, derived, true> { typedef BaseCube_eval_Cube<elem_type, derived> result; };
struct BaseCube_eval<elem_type, derived, true> { typedef BaseCube_eval_Cube<elem_type, derived> result; };

template<typename elem_type, typename derived>
struct BaseCube_eval<elem_type, derived, false> { typedef BaseCube_eval_expr<elem_type, derived> result; };
Expand All @@ -57,11 +59,24 @@ struct BaseCube
arma_cold inline void raw_print( const std::string extra_text = "") const;
arma_cold inline void raw_print(std::ostream& user_stream, const std::string extra_text = "") const;

inline arma_warn_unused elem_type min() const;
inline arma_warn_unused elem_type max() const;
arma_cold inline void brief_print( const std::string extra_text = "") const;
arma_cold inline void brief_print(std::ostream& user_stream, const std::string extra_text = "") const;

arma_warn_unused inline elem_type min() const;
arma_warn_unused inline elem_type max() const;

arma_warn_unused inline uword index_min() const;
arma_warn_unused inline uword index_max() const;

arma_warn_unused inline bool is_zero(const typename get_pod_type<elem_type>::result tol = 0) const;

arma_warn_unused inline bool is_empty() const;
arma_warn_unused inline bool is_finite() const;
arma_warn_unused inline bool has_inf() const;
arma_warn_unused inline bool has_nan() const;

inline arma_warn_unused uword index_min() const;
inline arma_warn_unused uword index_max() const;
arma_warn_unused inline const CubeToMatOp<derived, op_row_as_mat> row_as_mat(const uword in_row) const;
arma_warn_unused inline const CubeToMatOp<derived, op_col_as_mat> col_as_mat(const uword in_col) const;
};


Expand Down
Loading

0 comments on commit a7e3e0e

Please sign in to comment.