# ?lacrt

Performs a linear transformation of a pair of complex vectors.

## Syntax

call clacrt( n, cx, incx, cy, incy, c, s )

call zlacrt( n, cx, incx, cy, incy, c, s )

## Description

This routine performs the following transformation

where c, s are complex scalars and x, y are complex vectors.

## Input Parameters

n

  INTEGER. The number of elements in the vectors cx and cy (`n ≥ 0`).

cx, cy

  COMPLEX for clacrt

  COMPLEX*16 for zlacrt

  Arrays, dimension (n).

  Contain input vectors x and y, respectively.

incx

  INTEGER. The increment between successive elements of cx.

incy

  INTEGER. The increment between successive elements of cy.

c, s

  COMPLEX for clacrt

  COMPLEX*16 for zlacrt

  Complex scalars that define the transform matrix

## Output Parameters

cx

  On exit, overwritten with `c*x + s*y` .

cy

  On exit, overwritten with `-s*x + c*y` .

Parent topic: Auxiliary Routines