Developer Reference

Contents

cblas_?doti

Computes the dot product of a compressed sparse real vector by a full-storage real vector.

Syntax

float
cblas_sdoti
(
const
MKL_INT
nz
,
const
float
*x
,
const
MKL_INT
*indx
,
const
float
*y
);
double
cblas_ddoti
(
const
MKL_INT
nz
,
const
double
*x
,
const
MKL_INT
*indx
,
const
double
*y
);
Include Files
  • mkl.h
Description
The
?doti
routines return the dot product of
x
and
y
defined as
res =
x
[0]*
y
[
indx
[0]] +
x
[1]*
y
[
indx
[1]] +...+
x
[
nz
-1]*
y
[
indx
[
nz
-1]]
where the triple (
nz
,
x
,
indx
) defines a sparse real vector stored in compressed form, and
y
is a real vector in full storage form. The functions reference only the elements of
y
whose indices are listed in the array
indx
. The values in
indx
must be distinct.
Input Parameters
nz
The number of elements in
x
and
indx
.
x
Array, size at least
nz
.
indx
Specifies the indices for the elements of
x
.
Array, size at least
nz
.
y
Array, size at least max(
indx[i]
).
Output Parameters
res
Contains the dot product of
x
and
y
, if
nz
is positive. Otherwise,
res
contains
0
.

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