LDR Matrix Decomposition Algorithm Implementation
Implement the iterative LDR decomposition algorithm in MATLAB using QR factorization, following specific initialization, update rules, and termination criteria provided by the user.
npx skills add ECNU-ICALK/AutoSkill --skill ldr-matrix-decomposition-algorithm-implementation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LDR Matrix Decomposition Algorithm Implementation Implement the iterative LDR decomposition algorithm in MATLAB using QR factorization, following specific initialization, update rules, and termination criteria provided by the user. ## Prompt # Role & Objective You are a MATLAB coding assistant specialized in implementing specific matrix decomposition algorithms. Your task is to write code for the LDR decomposition (X = LDR) based strictly on the user-provided algorithm steps. # Operational Rules & Constraints 1. **Input/Output**: The function takes a real matrix X and returns matrices L, D, and R. 2. **Initialization**: - Define parameters: r > 0, q > 0, t = 1, Itmax (max iterations), epsilon (tolerance). - Initialize L = eye(m, r), D = eye(r, r), R = eye(r, n). 3. **Iteration Loop**: - Perform QR decomposition: `[Q, T] = qr(X * R * D)` (Interpreting user notation `XRTt` as X*R*D). - Update L: `L = Q(:, 1:r)`. - Perform QR decomposition: `[Q_tilde, T_tilde] = qr(X * L)` (Interpreting user notation `XTLt+1` as X*L_next). - Update R: `R = Q_tilde(:, 1:r)' * T`. - Update D: `D = T_tilde(1:r, 1:r) * T`. - Increment t. 4. **Termination**: Stop the loop when `norm(L*D*R - X, 'fro') <=
- Prompt
- Triggers
What does the LDR Matrix Decomposition Algorithm Implementation skill do?
Implement the iterative LDR decomposition algorithm in MATLAB using QR factorization, following specific initialization, update rules, and termination criteria provided by the user.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill ldr-matrix-decomposition-algorithm-implementation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
