"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/gmm_misc_meat.hpp" between
armadillo-10.2.0.tar.xz and armadillo-10.2.1.tar.xz

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

gmm_misc_meat.hpp  (armadillo-10.2.0.tar.xz):gmm_misc_meat.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 108 skipping to change at line 108
{ {
return r_mean; return r_mean;
} }
// //
// //
// //
template<typename eT> template<typename eT>
arma_inline arma_inline
arma_hot
eT eT
distance<eT, uword(1)>::eval(const uword N, const eT* A, const eT* B, const eT*) distance<eT, uword(1)>::eval(const uword N, const eT* A, const eT* B, const eT*)
{ {
eT acc1 = eT(0); eT acc1 = eT(0);
eT acc2 = eT(0); eT acc2 = eT(0);
uword i,j; uword i,j;
for(i=0, j=1; j<N; i+=2, j+=2) for(i=0, j=1; j<N; i+=2, j+=2)
{ {
eT tmp_i = A[i]; eT tmp_i = A[i];
skipping to change at line 140 skipping to change at line 139
const eT tmp_i = A[i] - B[i]; const eT tmp_i = A[i] - B[i];
acc1 += tmp_i*tmp_i; acc1 += tmp_i*tmp_i;
} }
return (acc1 + acc2); return (acc1 + acc2);
} }
template<typename eT> template<typename eT>
arma_inline arma_inline
arma_hot
eT eT
distance<eT, uword(2)>::eval(const uword N, const eT* A, const eT* B, const eT* C) distance<eT, uword(2)>::eval(const uword N, const eT* A, const eT* B, const eT* C)
{ {
eT acc1 = eT(0); eT acc1 = eT(0);
eT acc2 = eT(0); eT acc2 = eT(0);
uword i,j; uword i,j;
for(i=0, j=1; j<N; i+=2, j+=2) for(i=0, j=1; j<N; i+=2, j+=2)
{ {
eT tmp_i = A[i]; eT tmp_i = A[i];
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

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