diff --git a/include/armadillo_bits/arrayops_bones.hpp b/include/armadillo_bits/arrayops_bones.hpp index 2bdb31e0..8541260b 100644 --- a/include/armadillo_bits/arrayops_bones.hpp +++ b/include/armadillo_bits/arrayops_bones.hpp @@ -220,7 +220,12 @@ class arrayops template arma_hot inline static bool - is_finite(const eT* src, const uword n_elem); + is_finite(const eT* src, const uword n_elem, const typename arma_not_cx::result* junk = nullptr); + + template + arma_hot inline static + bool + is_finite(const std::complex* src, const uword n_elem); template arma_hot inline static diff --git a/include/armadillo_bits/arrayops_meat.hpp b/include/armadillo_bits/arrayops_meat.hpp index c1fd5d54..2f7cc38e 100644 --- a/include/armadillo_bits/arrayops_meat.hpp +++ b/include/armadillo_bits/arrayops_meat.hpp @@ -1147,8 +1147,10 @@ template arma_hot inline bool -arrayops::is_finite(const eT* src, const uword n_elem) +arrayops::is_finite(const eT* src, const uword n_elem, const typename arma_not_cx::result* junk) { + arma_ignore(junk); + uword j; for(j=1; j +arma_hot +inline +bool +arrayops::is_finite(const std::complex* src, const uword n_elem) + { + arma_ignore(junk); + + typedef typename std::complex eT; + + for(uword i=0; i arma_hot inline