Contents

# Batch Processing

## Algorithm Input

The linear kernel function accepts the input described below. Pass the Input ID as a parameter to the methods that provide input for your algorithm. For more details, see Algorithms.
Input ID
Input
X
Pointer to the
n
x
p
numeric table that represents the matrix
X
. This table can be an object of any class derived from
NumericTable
.
Y
Pointer to the
m
x
p
numeric table that represents the matrix
Y
. This table can be an object of any class derived from
NumericTable
.

## Algorithm Parameters

The linear kernel function has the following parameters:
Parameter
Default Value
Description
algorithmFPType
float
The floating-point type that the algorithm uses for intermediate computations. Can be
float
or
double
.
method
defaultDense
Available computation methods:
• defaultDense
- performance-oriented method
• fastCSR
- performance-oriented method for CSR numeric tables
ComputationMode
matrixMatrix
Computation mode for the kernel function. Can be:
• vectorVector
- compute the kernel function for given feature vectors
x
i
and
y
j
• matrixVector
- compute the kernel function for all vectors in the set
X
and a given feature vector
y
j
• matrixMatrix
- compute the kernel function for all vectors in the sets
X
and
Y
.
In
Intel DAAL
, this mode requires equal numbers of observations in both input tables:
n
=
m
.
rowIndexX
0
Index
i
of the vector in the set
X
for the
vectorVector
computation mode.
rowIndexY
0
Index
j
of the vector in the set
Y
for the
vectorVector
or
matrixVector
computation mode.
rowIndexResult
0
Row index in the
values
numeric table to locate the result of the computation for the
vectorVector
computation mode.
k
1
The coefficient
k
of the linear kernel.
b
0
The coefficient
b
of the linear kernel.

## Algorithm Output

The linear kernel function calculates the results described below. Pass the Result ID as a parameter to the methods that access the results of your algorithm. For more details, see Algorithms.
Result ID
Result
values
Pointer to the
n
x
m
numeric table with the values of the kernel function. By default, this result is an object of the
HomogenNumericTable
class, but you can define the result as an object of any class derived from
NumericTable
except
PackedSymmetricMatrix
,
PackedTriangularMatrix
, and
CSRNumericTable
.

## Examples

#### 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