mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
some cleaning in blas level 2
This commit is contained in:
@@ -140,6 +140,17 @@ T* get_compact_vector(T* x, int n, int incx)
|
||||
return ret;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T* copy_back(T* x_cpy, T* x, int n, int incx)
|
||||
{
|
||||
if(x_cpy==x)
|
||||
return 0;
|
||||
|
||||
if(incx<0) vector(x,n,-incx).reverse() = vector(x_cpy,n);
|
||||
else vector(x,n, incx) = vector(x_cpy,n);
|
||||
return x_cpy;
|
||||
}
|
||||
|
||||
#define EIGEN_BLAS_FUNC(X) EIGEN_CAT(SCALAR_SUFFIX,X##_)
|
||||
|
||||
#endif // EIGEN_BLAS_COMMON_H
|
||||
|
||||
Reference in New Issue
Block a user