"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/diagview_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.

diagview_meat.hpp  (armadillo-10.2.0.tar.xz):diagview_meat.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 79 skipping to change at line 79
//! set a diagonal of our matrix using a diagonal from a foreign matrix //! set a diagonal of our matrix using a diagonal from a foreign matrix
template<typename eT> template<typename eT>
inline inline
void void
diagview<eT>::operator= (const diagview<eT>& x) diagview<eT>::operator= (const diagview<eT>& x)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
diagview<eT>& d = *this; diagview<eT>& d = *this;
arma_debug_check( (d.n_elem != x.n_elem), "diagview: diagonals have incompatib le lengths"); arma_debug_check( (d.n_elem != x.n_elem), "diagview: diagonals have incompatib le lengths" );
Mat<eT>& d_m = const_cast< Mat<eT>& >(d.m); Mat<eT>& d_m = const_cast< Mat<eT>& >(d.m);
const Mat<eT>& x_m = x.m; const Mat<eT>& x_m = x.m;
if(&d_m != &x_m) if(&d_m != &x_m)
{ {
const uword d_n_elem = d.n_elem; const uword d_n_elem = d.n_elem;
const uword d_row_offset = d.row_offset; const uword d_row_offset = d.row_offset;
const uword d_col_offset = d.col_offset; const uword d_col_offset = d.col_offset;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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