##### copy

###### Prototype

There is one prototype of `copy` available, please see below.

    copy( const VectorX& x, VectorY& y );

###### Description

`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
--- | --- | --- | ---
`float` | SCOPY | cblas_scopy | cublasScopy
`double` | DCOPY | cblas_dcopy | cublasDcopy
`complex<float>` | CCOPY | cblas_ccopy | cublasCcopy
`complex<double>` | ZCOPY | cblas_zcopy | Unavailable

The original routines SCOPY, DCOPY, CCOPY, and ZCOPY have five arguments, whereas `copy` requires two arguments.

Table 1.9. Deduction of arguments of copy.

###### Definition

Defined in header `boost/numeric/bindings/blas/level1/copy.hpp`.

###### Parameters or Requirements on Types

Parameters

MatrixA

  The definition of term 1

MatrixB

  The definition of term 2

MatrixC

  The definition of term 3.

  Definitions may contain paragraphs.

###### Complexity

###### Example

    #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

###### Notes

###### See Also

- Originating Fortran source files scopy.f, dcopy.f, ccopy.f, and zcopy.f at Netlib.