trimat_helper.hpp (armadillo-10.8.2.tar.xz) | : | trimat_helper.hpp (armadillo-11.0.0.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 102 | skipping to change at line 102 | |||
if(A_ij != eT_zero) { return false; } | if(A_ij != eT_zero) { return false; } | |||
} | } | |||
A_col += N; | A_col += N; | |||
} | } | |||
return true; | return true; | |||
} | } | |||
template<typename eT> | ||||
inline | ||||
bool | ||||
has_nonfinite_tril(const Mat<eT>& A) | ||||
{ | ||||
arma_extra_debug_sigprint(); | ||||
// NOTE: assuming that A has a square size | ||||
const eT* colptr = A.memptr(); | ||||
const uword N = A.n_rows; | ||||
for(uword i=0; i<N; ++i) | ||||
{ | ||||
const uword len = N-i; | ||||
if(arrayops::is_finite(&(colptr[i]), len) == false) { return true; } | ||||
colptr += N; | ||||
} | ||||
return false; | ||||
} | ||||
template<typename eT> | ||||
inline | ||||
bool | ||||
has_nonfinite_triu(const Mat<eT>& A) | ||||
{ | ||||
arma_extra_debug_sigprint(); | ||||
// NOTE: assuming that A has a square size | ||||
const eT* colptr = A.memptr(); | ||||
const uword N = A.n_rows; | ||||
for(uword i=0; i<N; ++i) | ||||
{ | ||||
const uword len = i+1; | ||||
if(arrayops::is_finite(colptr, len) == false) { return true; } | ||||
colptr += N; | ||||
} | ||||
return false; | ||||
} | ||||
} // end of namespace trimat_helper | } // end of namespace trimat_helper | |||
//! @} | //! @} | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 48 lines changed or added |