Batch and Online Processing

Online processing computation mode assumes that the data arrives in blocks \(i = 1, 2, 3, \ldots \text{nblocks}\).

Algorithm Input

QR decomposition 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.

Algorithm Input for QR Decomposition without Pivoting (Batch and Online Processing)

Input ID

Input

data

Pointer to the numeric table that represents:

  • For batch processing: the entire \(n \times p\) matrix \(X\) to be factorized.

  • For online processing: the \(n_i \times p\) submatrix of \(X\) that represents the current data block in the online processing mode. Note that each current data block must have sufficient size: \(n_i > p\).

The input can be an object of any class derived from NumericTable.

Algorithm Parameters

QR decomposition has the following parameters:

Algorithm Parameters for QR Decomposition without Pivoting (Batch and Online Processing)

Parameter

Default Value

Description

algorithmFPType

float

The floating-point type that the algorithm uses for intermediate computations. Can be float or double.

method

defaultDense

Performance-oriented computation method, the only method supported by the algorithm.

Algorithm Output

QR decomposition 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.

Algorithm Output for QR Decomposition without Pivoting (Batch and Online Processing)

Result ID

Result

matrixQ

Pointer to the numeric table with the \(n \times p\) matrix \(Q_1\).

Note

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.

matrixR

Pointer to the numeric table with the \(p \times p\) upper triangular matrix \(R_1\).

Note

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 the PackedSymmetricMatrix class, CSRNumericTable class, and PackedTriangularMatrix class with the lowerPackedTriangularMatrix layout.