GNU 科学库:gsl_blas_dcopy 与 gsl_vector_memcpy

GNU scientific lib : gsl_blas_dcopy vs gsl_vector_memcpy

我正在使用 GNU 科学库,我想知道这两个将向量复制到另一个函数的区别是什么: gsl_blas_dcopygsl_vector_memcpy

你知道哪个最快吗?

在 GSL 手册的第 8.3.6 节中,它说

However, it is useful to have a small number of utility functions which do not require the full blas code. The following functions fall into this category.

int gsl_vector_memcpy

所以两者基本相同。如果您已经需要 BLAS 功能,请使用 gsl_blas_dcopy.

谣言说针对您的 BLAS 实施 CPU 可能是最快的。