---
name: "clacrt.f"
section: "3"
platform: "linux"
package: "lapack-doc"
version: "3.12.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/clacrt.f"
---

# clacrt.f(3)

## NAME

SRC/clacrt.f

## SYNOPSIS

### Functions/Subroutines

subroutine **clacrt** (n, cx, incx, cy, incy, c, s)\
 **CLACRT** performs a linear transformation of a pair of complex vectors.

## Function/Subroutine Documentation

### subroutine clacrt (integer n, complex, dimension( \* ) cx, integer incx, complex, dimension( \* ) cy, integer incy, complex c, complex s)

**CLACRT** performs a linear transformation of a pair of complex vectors.

**Purpose:**

```
!>
!> CLACRT performs the operation
!>
!>    (  c  s )( x )  ==> ( x )
!>    ( -s  c )( y )      ( y )
!>
!> where c and s are complex and the vectors x and y are complex.
!>
```

**Parameters**

*N*

```
!>          N is INTEGER
!>          The number of elements in the vectors CX and CY.
!>
```

*CX*

```
!>          CX is COMPLEX array, dimension (N)
!>          On input, the vector x.
!>          On output, CX is overwritten with c*x + s*y.
!>
```

*INCX*

```
!>          INCX is INTEGER
!>          The increment between successive values of CX.  INCX <> 0.
!>
```

*CY*

```
!>          CY is COMPLEX array, dimension (N)
!>          On input, the vector y.
!>          On output, CY is overwritten with -s*x + c*y.
!>
```

*INCY*

```
!>          INCY is INTEGER
!>          The increment between successive values of CY.  INCY <> 0.
!>
```

*C*

```
!>          C is COMPLEX
!>
```

*S*

```
!>          S is COMPLEX
!>          C and S define the matrix
!>             [  C   S  ].
!>             [ -S   C  ]
!>
```

**Author**

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Definition at line **104** of file **clacrt.f**.

## Author

Generated automatically by Doxygen for LAPACK from the source code.
