·  Home
+   man pages
 -> Linux -> FreeBSD -> OpenBSD -> NetBSD -> Tru64 Unix -> HP-UX 11i -> IRIX
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

man pages->IRIX man pages -> libblas/scal (3)
 Title
 Content
 Arch
 Section All Sections 1 - General Commands 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface n - New Commands

### Contents

```
_SCAL(3F)							     _SCAL(3F)

```

### NAME[Toc][Back]

```     dscal, sscal, zscal, cscal, zdscal, csscal	- BLAS level ONE scaling
subroutines

FORTRAN	77 SYNOPSIS
subroutine	dscal( n, a, x,	incx )
integer	       incx, n
double precision  a
double precision  x( 1 )

subroutine	sscal( n, a, x,	incx )
integer	       incx, n
real	       a
real	       x( 1 )

subroutine	zscal( n, a, x,	incx )
integer	       incx, n
complex*16	       a
complex*16	       x( 1 )

subroutine	cscal( n, a, x,	incx )
integer	       incx, n
complex	       a
complex	       x( 1 )

subroutine	zdscal(	n, a, x, incx )
integer		incx, n
double precision	a
complex*16		x( 1 )

subroutine	csscal(	n, a, x, incx )
integer		incx, n
real		a
complex		x( 1 )

```

### C SYNOPSIS[Toc][Back]

```     void dscal( n, a, x, incx )
Integer	       incx, n;
double	       a;
double	       (*x)[ n ];

void scal(	n, a, x, incx )
Integer	       incx, n;
float	       a;
float	       (*x)[ n ];

void zscal( n, a, x, incx )
Integer	       incx, n;
Complex	       a;
Complex	       (*x)[ n ];

Page 1

_SCAL(3F)							     _SCAL(3F)

void cscal( n, a, x, incx )
Integer	       incx, n;
Complex	       a;
Complex	       (*x)[ n ];

void zdscal( n, a,	x, incx	)
Integer	       incx, n;
double	       a;
Complex	       (*x)[ n ];

void csscal( n, a,	x, incx	)
Integer	       incx, n;
float	       a;
Complex	       (*x)[ n ];

```

### DESCRIPTION[Toc][Back]

```     dscal, sscal, zscal, cscal, zdscal, and csscal scale the vector x of
length n and increment incx by the	constant a.

For dscal,	sscal, zscal and cscal the constant a is of the	same type as
the vector	x.  zdscal and csscal scale a "complex"	vector by "real"
constant.

```

### AUTHORS[Toc][Back]

```	  Jack Dongarra, linpack, 3/11/78.

PPPPaaaaggggeeee 2222```
[ Back ]
Similar pages