"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/arrayops_meat.hpp" between
armadillo-10.8.2.tar.xz and armadillo-11.0.0.tar.xz

About: Armadillo is a C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use.

arrayops_meat.hpp  (armadillo-10.8.2.tar.xz):arrayops_meat.hpp  (armadillo-11.0.0.tar.xz)
skipping to change at line 1080 skipping to change at line 1080
bool bool
arrayops::is_finite(const eT* src, const uword n_elem) arrayops::is_finite(const eT* src, const uword n_elem)
{ {
uword j; uword j;
for(j=1; j<n_elem; j+=2) for(j=1; j<n_elem; j+=2)
{ {
const eT val_i = (*src); src++; const eT val_i = (*src); src++;
const eT val_j = (*src); src++; const eT val_j = (*src); src++;
if( (arma_isfinite(val_i) == false) || (arma_isfinite(val_j) == false) ) if(arma_isfinite(val_i) == false) { return false; }
{ if(arma_isfinite(val_j) == false) { return false; }
return false;
}
} }
if((j-1) < n_elem) if((j-1) < n_elem)
{ {
if(arma_isfinite(*src) == false) if(arma_isfinite(*src) == false) { return false; }
{
return false;
}
} }
return true; return true;
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
bool bool
arrayops::has_inf(const eT* src, const uword n_elem) arrayops::has_inf(const eT* src, const uword n_elem)
 End of changes. 2 change blocks. 
8 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)