"Fossies" - the Fresh Open Source Software Archive  

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

SpSubview_meat.hpp  (armadillo-10.2.0.tar.xz):SpSubview_meat.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 847 skipping to change at line 847
return (*this).at(lrow, lcol); return (*this).at(lrow, lcol);
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
SpSubview_MapMat_val<eT> SpSubview_MapMat_val<eT>
SpSubview<eT>::operator()(const uword i) SpSubview<eT>::operator()(const uword i)
{ {
arma_debug_check( (i >= n_elem), "SpSubview::operator(): index out of bounds") ; arma_debug_check( (i >= n_elem), "SpSubview::operator(): index out of bounds" );
const uword lrow = i % n_rows; const uword lrow = i % n_rows;
const uword lcol = i / n_rows; const uword lcol = i / n_rows;
return (*this).at(lrow, lcol); return (*this).at(lrow, lcol);
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
eT eT
SpSubview<eT>::operator()(const uword i) const SpSubview<eT>::operator()(const uword i) const
{ {
arma_debug_check( (i >= n_elem), "SpSubview::operator(): index out of bounds") ; arma_debug_check( (i >= n_elem), "SpSubview::operator(): index out of bounds" );
const uword lrow = i % n_rows; const uword lrow = i % n_rows;
const uword lcol = i / n_rows; const uword lcol = i / n_rows;
return (*this).at(lrow, lcol); return (*this).at(lrow, lcol);
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
SpSubview_MapMat_val<eT> SpSubview_MapMat_val<eT>
SpSubview<eT>::operator()(const uword in_row, const uword in_col) SpSubview<eT>::operator()(const uword in_row, const uword in_col)
{ {
arma_debug_check( (in_row >= n_rows) || (in_col >= n_cols), "SpSubview::operat or(): index out of bounds"); arma_debug_check( (in_row >= n_rows) || (in_col >= n_cols), "SpSubview::operat or(): index out of bounds" );
return (*this).at(in_row, in_col); return (*this).at(in_row, in_col);
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
eT eT
SpSubview<eT>::operator()(const uword in_row, const uword in_col) const SpSubview<eT>::operator()(const uword in_row, const uword in_col) const
{ {
arma_debug_check( (in_row >= n_rows) || (in_col >= n_cols), "SpSubview::operat or(): index out of bounds"); arma_debug_check( (in_row >= n_rows) || (in_col >= n_cols), "SpSubview::operat or(): index out of bounds" );
return (*this).at(in_row, in_col); return (*this).at(in_row, in_col);
} }
template<typename eT> template<typename eT>
arma_hot arma_hot
inline inline
SpSubview_MapMat_val<eT> SpSubview_MapMat_val<eT>
SpSubview<eT>::at(const uword i) SpSubview<eT>::at(const uword i)
{ {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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