mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace Eigen type metaprogramming with corresponding std types and make use of alias templates
This commit is contained in:
committed by
Antonio Sánchez
parent
514f90c9ff
commit
421cbf0866
@@ -149,7 +149,7 @@ T* get_compact_vector(T* x, int n, int incx)
|
||||
if(incx==1)
|
||||
return x;
|
||||
|
||||
typename Eigen::internal::remove_const<T>::type* ret = new Scalar[n];
|
||||
std::remove_const_t<T>* ret = new Scalar[n];
|
||||
if(incx<0) make_vector(ret,n) = make_vector(x,n,-incx).reverse();
|
||||
else make_vector(ret,n) = make_vector(x,n, incx);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user