svd_decompose
Computes the Singular Value Decomposition (SVD) of a stored matrix.
Decomposes the matrix A into A = U @ S @ V^T, where U and V^T are orthogonal
matrices, and S is a diagonal matrix of singular values.
Args:
name (str): The name of the matrix to decompose.
Returns:
dict: A dictionary with keys:
- 'u': the left singular vectors, as nested lists
- 's': the singular values, as a flat list
- 'v_t': the right singular vectors transposed, as nested lists
Raises:
ValueError: If the matrix is not found or decomposition fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the stored matrix to decompose. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||