PCA Sync Task¶
The Principal Component Analysis (PCA) sync task projects real FP32 data onto a reduced set of orthogonal modes. Given an input tensor \(X \in\mathbb{R}^{F \times H \times W}\), the task reshapes it into a sample matrix \(X_{(N \times F)}\) with \(N = H \cdot W\), forms the symmetric covariance
computes the eigenpairs associated with indices begin (inclusive) through end (exclusive), and finally produces the principal component responses
where the columns of \(V\) are the selected eigenvectors.
Warning
The input is not mean-centered before decomposition.
Note
Eigenvalues are returned in ascending order. To capture the most energetic components, choose indices close to F (for example, begin = F - K, end = F to keep the K largest modes).
Inputs¶
This task has a single input of shape (F, H, W), where:
F: number of features (e.g., frames or spectral slices)H: height (rows)W: width (columns)
The dtype must be real 32-bit (float32) and the tensor must reside in device memory. Complex
FP32 PCA is not yet supported by the cuSolverDx path.
Outputs¶
This task produces a single output of shape ((end - begin), H, W), where:
end - begin: number of retained principal componentsH: height (same as input)W: width (same as input)
The dtype of the output tensor is real 32-bit (float32) and it is written to device memory.
Inplace¶
This task does not support inplace operation.
Ownership¶
This task does not own any inputs or outputs.
Settings¶
Example:
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|---|---|---|---|---|---|
| + begin | No | integer | No | - | Inclusive index of the first eigencomponent to keep. Must satisfy: - begin >= 0 - begin < end |
| + end | No | integer | No | - | Exclusive index of the last eigencomponent to keep. Must satisfy: - end > begin - end <= number of input features |