"Fossies" - the Fresh Open Source Software Archive  

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

SpCol_meat.hpp  (armadillo-10.2.0.tar.xz):SpCol_meat.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 204 skipping to change at line 204
} }
//! remove specified row //! remove specified row
template<typename eT> template<typename eT>
inline inline
void void
SpCol<eT>::shed_row(const uword row_num) SpCol<eT>::shed_row(const uword row_num)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( row_num >= SpMat<eT>::n_rows, "SpCol::shed_row(): out of bou nds"); arma_debug_check( row_num >= SpMat<eT>::n_rows, "SpCol::shed_row(): out of bou nds" );
shed_rows(row_num, row_num); shed_rows(row_num, row_num);
} }
//! remove specified rows //! remove specified rows
template<typename eT> template<typename eT>
inline inline
void void
SpCol<eT>::shed_rows(const uword in_row1, const uword in_row2) SpCol<eT>::shed_rows(const uword in_row1, const uword in_row2)
{ {
skipping to change at line 324 skipping to change at line 324
// access::rw(SpMat<eT>::n_elem) += N; // access::rw(SpMat<eT>::n_elem) += N;
// } // }
template<typename eT> template<typename eT>
inline inline
typename SpCol<eT>::row_iterator typename SpCol<eT>::row_iterator
SpCol<eT>::begin_row(const uword row_num) SpCol<eT>::begin_row(const uword row_num)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::begin_row(): index o ut of bounds"); arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::begin_row(): index o ut of bounds" );
SpMat<eT>::sync_csc(); SpMat<eT>::sync_csc();
return row_iterator(*this, row_num, 0); return row_iterator(*this, row_num, 0);
} }
template<typename eT> template<typename eT>
inline inline
typename SpCol<eT>::const_row_iterator typename SpCol<eT>::const_row_iterator
SpCol<eT>::begin_row(const uword row_num) const SpCol<eT>::begin_row(const uword row_num) const
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::begin_row(): index o ut of bounds"); arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::begin_row(): index o ut of bounds" );
SpMat<eT>::sync_csc(); SpMat<eT>::sync_csc();
return const_row_iterator(*this, row_num, 0); return const_row_iterator(*this, row_num, 0);
} }
template<typename eT> template<typename eT>
inline inline
typename SpCol<eT>::row_iterator typename SpCol<eT>::row_iterator
SpCol<eT>::end_row(const uword row_num) SpCol<eT>::end_row(const uword row_num)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::end_row(): index out of bounds"); arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::end_row(): index out of bounds" );
SpMat<eT>::sync_csc(); SpMat<eT>::sync_csc();
return row_iterator(*this, row_num + 1, 0); return row_iterator(*this, row_num + 1, 0);
} }
template<typename eT> template<typename eT>
inline inline
typename SpCol<eT>::const_row_iterator typename SpCol<eT>::const_row_iterator
SpCol<eT>::end_row(const uword row_num) const SpCol<eT>::end_row(const uword row_num) const
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::end_row(): index out of bounds"); arma_debug_check( (row_num >= SpMat<eT>::n_rows), "SpCol::end_row(): index out of bounds" );
SpMat<eT>::sync_csc(); SpMat<eT>::sync_csc();
return const_row_iterator(*this, row_num + 1, 0); return const_row_iterator(*this, row_num + 1, 0);
} }
#ifdef ARMA_EXTRA_SPCOL_MEAT #ifdef ARMA_EXTRA_SPCOL_MEAT
#include ARMA_INCFILE_WRAP(ARMA_EXTRA_SPCOL_MEAT) #include ARMA_INCFILE_WRAP(ARMA_EXTRA_SPCOL_MEAT)
#endif #endif
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

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