"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/Proxy.hpp" between
armadillo-10.6.0.tar.xz and armadillo-10.6.1.tar.xz

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

Proxy.hpp  (armadillo-10.6.0.tar.xz):Proxy.hpp  (armadillo-10.6.1.tar.xz)
skipping to change at line 86 skipping to change at line 86
static constexpr bool is_xvec = T1::is_xvec; static constexpr bool is_xvec = T1::is_xvec;
arma_aligned const T1& Q; arma_aligned const T1& Q;
inline explicit Proxy_fixed(const T1& A) inline explicit Proxy_fixed(const T1& A)
: Q(A) : Q(A)
{ {
arma_extra_debug_sigprint(); arma_extra_debug_sigprint();
} }
static constexpr uword get_n_rows() { return T1::n_rows; } //// this may require T1::n_elem etc to be declared as static constexpr inline
static constexpr uword get_n_cols() { return T1::n_cols; } variables (C++17)
static constexpr uword get_n_elem() { return T1::n_elem; } //// see also the notes in Mat::fixed
//// https://en.cppreference.com/w/cpp/language/static
//// https://en.cppreference.com/w/cpp/language/inline
//
// static constexpr uword get_n_rows() { return T1::n_rows; }
// static constexpr uword get_n_cols() { return T1::n_cols; }
// static constexpr uword get_n_elem() { return T1::n_elem; }
arma_inline uword get_n_rows() const { return is_row ? 1 : T1::n_rows; }
arma_inline uword get_n_cols() const { return is_col ? 1 : T1::n_cols; }
arma_inline uword get_n_elem() const { return T1::n_elem; }
arma_inline elem_type operator[] (const uword i) const { re turn Q[i]; } arma_inline elem_type operator[] (const uword i) const { re turn Q[i]; }
arma_inline elem_type at (const uword row, const uword col) const { re turn Q.at(row, col); } arma_inline elem_type at (const uword row, const uword col) const { re turn Q.at(row, col); }
arma_inline elem_type at_alt (const uword i) const { re turn Q.at_alt(i); } arma_inline elem_type at_alt (const uword i) const { re turn Q.at_alt(i); }
arma_inline ea_type get_ea() const { return Q.memptr(); } arma_inline ea_type get_ea() const { return Q.memptr(); }
arma_inline aligned_ea_type get_aligned_ea() const { return Q; } arma_inline aligned_ea_type get_aligned_ea() const { return Q; }
template<typename eT2> template<typename eT2>
arma_inline bool is_alias(const Mat<eT2>& X) const { return (void_ptr(&Q) == v oid_ptr(&X)); } arma_inline bool is_alias(const Mat<eT2>& X) const { return (void_ptr(&Q) == v oid_ptr(&X)); }
 End of changes. 1 change blocks. 
3 lines changed or deleted 13 lines changed or added

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