Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

cblas_?scal

Computes the product of a vector by a scalar.

Syntax

void
cblas_sscal
(
const
MKL_INT
n
,
const
float
a
,
float
*x
,
const
MKL_INT
incx
);
void
cblas_dscal
(
const
MKL_INT
n
,
const
double
a
,
double
*x
,
const
MKL_INT
incx
);
void
cblas_cscal
(
const
MKL_INT
n
,
const
void
*a
,
void
*x
,
const
MKL_INT
incx
);
void
cblas_zscal
(
const
MKL_INT
n
,
const
void
*a
,
void
*x
,
const
MKL_INT
incx
);
void
cblas_csscal
(
const
MKL_INT
n
,
const
float
a
,
void
*x
,
const
MKL_INT
incx
);
void
cblas_zdscal
(
const
MKL_INT
n
,
const
double
a
,
void
*x
,
const
MKL_INT
incx
);
Include Files
  • mkl.h
Description
The
?scal
routines perform a vector operation defined as
x = a*x
where:
a
is a scalar,
x
is an
n
-element vector.
Input Parameters
n
Specifies the number of elements in vector
x
.
a
Specifies the scalar
a
.
x
Array, size at least
(1 + (
n
-1)*abs(
incx
))
.
incx
Specifies the increment for the elements of
x
.
Output Parameters
x
Updated vector
x
.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804