remove unused code
This commit is contained in:
@@ -69,9 +69,6 @@ class Col : public Mat<eT>
|
||||
inline Col(Col&& m);
|
||||
inline Col& operator=(Col&& m);
|
||||
|
||||
// inline Col(Mat<eT>&& m);
|
||||
// inline Col& operator=(Mat<eT>&& m);
|
||||
|
||||
inline Col& operator=(const eT val);
|
||||
inline Col& operator=(const Col& m);
|
||||
|
||||
|
||||
@@ -431,64 +431,6 @@ Col<eT>::operator=(Col<eT>&& X)
|
||||
|
||||
|
||||
|
||||
// template<typename eT>
|
||||
// inline
|
||||
// Col<eT>::Col(Mat<eT>&& X)
|
||||
// : Mat<eT>(arma_vec_indicator(), 1)
|
||||
// {
|
||||
// arma_debug_sigprint(arma_str::format("this: %x; X: %x") % this % &X);
|
||||
//
|
||||
// if(X.n_cols != 1) { const Mat<eT>& XX = X; Mat<eT>::operator=(XX); return; }
|
||||
//
|
||||
// access::rw(Mat<eT>::n_rows) = X.n_rows;
|
||||
// access::rw(Mat<eT>::n_cols) = 1;
|
||||
// access::rw(Mat<eT>::n_elem) = X.n_elem;
|
||||
// access::rw(Mat<eT>::n_alloc) = X.n_alloc;
|
||||
//
|
||||
// if( (X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2) )
|
||||
// {
|
||||
// access::rw(Mat<eT>::mem_state) = X.mem_state;
|
||||
// access::rw(Mat<eT>::mem) = X.mem;
|
||||
//
|
||||
// access::rw(X.n_rows) = 0;
|
||||
// access::rw(X.n_elem) = 0;
|
||||
// access::rw(X.n_alloc) = 0;
|
||||
// access::rw(X.mem_state) = 0;
|
||||
// access::rw(X.mem) = nullptr;
|
||||
// }
|
||||
// else // condition: (X.n_alloc <= arma_config::mat_prealloc) || (X.mem_state == 0) || (X.mem_state == 3)
|
||||
// {
|
||||
// (*this).init_cold();
|
||||
//
|
||||
// arrayops::copy( (*this).memptr(), X.mem, X.n_elem );
|
||||
//
|
||||
// if( (X.mem_state == 0) && (X.n_alloc <= arma_config::mat_prealloc) )
|
||||
// {
|
||||
// access::rw(X.n_rows) = 0;
|
||||
// access::rw(X.n_elem) = 0;
|
||||
// access::rw(X.mem) = nullptr;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// template<typename eT>
|
||||
// inline
|
||||
// Col<eT>&
|
||||
// Col<eT>::operator=(Mat<eT>&& X)
|
||||
// {
|
||||
// arma_debug_sigprint(arma_str::format("this: %x; X: %x") % this % &X);
|
||||
//
|
||||
// if(X.n_cols != 1) { const Mat<eT>& XX = X; Mat<eT>::operator=(XX); return *this; }
|
||||
//
|
||||
// (*this).steal_mem(X, true);
|
||||
//
|
||||
// return *this;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
template<typename eT>
|
||||
inline
|
||||
Col<eT>&
|
||||
|
||||
@@ -69,9 +69,6 @@ class Row : public Mat<eT>
|
||||
inline Row(Row&& m);
|
||||
inline Row& operator=(Row&& m);
|
||||
|
||||
// inline Row(Mat<eT>&& m);
|
||||
// inline Row& operator=(Mat<eT>&& m);
|
||||
|
||||
inline Row& operator=(const eT val);
|
||||
inline Row& operator=(const Row& X);
|
||||
|
||||
|
||||
@@ -431,64 +431,6 @@ Row<eT>::operator=(Row<eT>&& X)
|
||||
|
||||
|
||||
|
||||
// template<typename eT>
|
||||
// inline
|
||||
// Row<eT>::Row(Mat<eT>&& X)
|
||||
// : Mat<eT>(arma_vec_indicator(), 2)
|
||||
// {
|
||||
// arma_debug_sigprint(arma_str::format("this: %x; X: %x") % this % &X);
|
||||
//
|
||||
// if(X.n_rows != 1) { const Mat<eT>& XX = X; Mat<eT>::operator=(XX); return; }
|
||||
//
|
||||
// access::rw(Mat<eT>::n_rows) = 1;
|
||||
// access::rw(Mat<eT>::n_cols) = X.n_cols;
|
||||
// access::rw(Mat<eT>::n_elem) = X.n_elem;
|
||||
// access::rw(Mat<eT>::n_alloc) = X.n_alloc;
|
||||
//
|
||||
// if( (X.n_alloc > arma_config::mat_prealloc) || (X.mem_state == 1) || (X.mem_state == 2) )
|
||||
// {
|
||||
// access::rw(Mat<eT>::mem_state) = X.mem_state;
|
||||
// access::rw(Mat<eT>::mem) = X.mem;
|
||||
//
|
||||
// access::rw(X.n_cols) = 0;
|
||||
// access::rw(X.n_elem) = 0;
|
||||
// access::rw(X.n_alloc) = 0;
|
||||
// access::rw(X.mem_state) = 0;
|
||||
// access::rw(X.mem) = nullptr;
|
||||
// }
|
||||
// else // condition: (X.n_alloc <= arma_config::mat_prealloc) || (X.mem_state == 0) || (X.mem_state == 3)
|
||||
// {
|
||||
// (*this).init_cold();
|
||||
//
|
||||
// arrayops::copy( (*this).memptr(), X.mem, X.n_elem );
|
||||
//
|
||||
// if( (X.mem_state == 0) && (X.n_alloc <= arma_config::mat_prealloc) )
|
||||
// {
|
||||
// access::rw(X.n_cols) = 0;
|
||||
// access::rw(X.n_elem) = 0;
|
||||
// access::rw(X.mem) = nullptr;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
// template<typename eT>
|
||||
// inline
|
||||
// Row<eT>&
|
||||
// Row<eT>::operator=(Mat<eT>&& X)
|
||||
// {
|
||||
// arma_debug_sigprint(arma_str::format("this: %x; X: %x") % this % &X);
|
||||
//
|
||||
// if(X.n_rows != 1) { const Mat<eT>& XX = X; Mat<eT>::operator=(XX); return *this; }
|
||||
//
|
||||
// (*this).steal_mem(X, true);
|
||||
//
|
||||
// return *this;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
template<typename eT>
|
||||
inline
|
||||
Row<eT>&
|
||||
|
||||
Reference in New Issue
Block a user