Batch and Online Processing¶
Online processing computation mode assumes that the data arrives in blocks \(i = 1, 2, 3, \ldots \text{nblocks}\).
Algorithm Input¶
The SVD algorithm accepts the input described below.
Pass the Input ID
as a parameter to the methods that provide input for your algorithm.
Input ID |
Input |
---|---|
|
Pointer to the numeric table that represents:
The input can be an object of any class derived from |
Algorithm Parameters¶
The SVD algorithm has the following parameters:
Parameter |
Default Value |
Description |
---|---|---|
|
|
The floating-point type that the algorithm uses for intermediate computations. Can be |
|
|
Performance-oriented computation method, the only method supported by the algorithm. |
|
|
Specifies whether the matrix of left singular vectors is required. Can be:
|
|
|
Specifies whether the matrix of left singular vectors is required. Can be:
|
Algorithm Output¶
The SVD algorithm calculates the results described below.
Pass the Result ID
as a parameter to the methods that access the results of your algorithm.
Result ID |
Result |
---|---|
|
Pointer to the \(1 \times p\) numeric table with singular values (the diagonal of the matrix \(\Sigma\)). |
|
Pointer to the \(n \times p\) numeric table with left singular vectors (matrix \(U\)).
Pass |
|
Pointer to the \(p \times p\) numeric table with right singular vectors (matrix \(V\)).
Pass |
Note
By default, these results are objects of the HomogenNumericTable
class,
but you can define the result as an object of any class derived from NumericTable
except PackedSymmetricMatrix
, PackedTriangularMatrix
, and CSRNumericTable
.