There is one prototype of copy
available, please see below.
copy( const VectorX& x, VectorY& y );
copy
(short for TODO)
provides a C++ interface to BLAS routines SCOPY, DCOPY, CCOPY, and ZCOPY.
The selection of the BLAS routine is done during compile-time, and is
determined by the type of values contained in type VectorX
.
The type of values is obtained through the value_type
meta-function typename value_type<VectorX>::type
. Table X below illustrates to
which specific routine this dispatching will take place.
Table 1.8. Dispatching of copy.
Value type of VectorX |
BLAS routine |
CBLAS routine |
CUBLAS routine |
---|---|---|---|
|
SCOPY |
cblas_scopy |
cublasScopy |
|
DCOPY |
cblas_dcopy |
cublasDcopy |
|
CCOPY |
cblas_ccopy |
cublasCcopy |
|
ZCOPY |
cblas_zcopy |
Unavailable |
The original routines SCOPY, DCOPY, CCOPY, and ZCOPY have five arguments,
whereas copy
requires
two arguments.
Defined in header boost/numeric/bindings/blas/level1/copy.hpp
.
Parameters
The definition of term 1
The definition of term 2
The definition of term 3.
Definitions may contain paragraphs.
#include <boost/numeric/bindings/blas/level1/copy.hpp> using namespace boost::numeric::bindings; blas::copy( x, y, z );
this will output
[5] 0 1 2 3 4 5