##### rot

###### Prototype

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

    rot( VectorX& x, VectorY& y, const Scalar >, const Scalar > );

###### Description

`rot` (short for TODO) provides a C++ interface to BLAS routines SROT, DROT, CSROT, and ZDROT. Applies a plane rotation, where the cos and sin (c and s) are real and the vectors cx and cy are complex. jack dongarra, linpack, 3/11/78.

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.22. Dispatching of rot.

Value type of VectorX | BLAS routine | CBLAS routine | CUBLAS routine
--- | --- | --- | ---
`float` | SROT | cblas_srot | cublasSrot
`double` | DROT | cblas_drot | cublasDrot
`complex<float>` | CSROT | Unavailable | cublasCsrot
`complex<double>` | ZDROT | Unavailable | Unavailable

The original routines SROT, DROT, CSROT, and ZDROT have seven arguments, whereas `rot` requires four arguments.

Table 1.23. Deduction of arguments of rot.

###### Definition

Defined in header `boost/numeric/bindings/blas/level1/rot.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/rot.hpp>
    using namespace boost::numeric::bindings;

    blas::rot( x, y, z );

this will output

    [5] 0 1 2 3 4 5

###### Notes

###### See Also

- Originating Fortran source files srot.f, drot.f, csrot.f, and zdrot.f at Netlib.