LDR Matrix Decomposition Algorithm Implementation
БесплатноБез исполняемых скриптовНе проверенImplement the iterative LDR decomposition algorithm in MATLAB using QR factorization, following specific initialization, update rules, and termination…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
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
- Input/Output: The function takes a real matrix X and returns matrices L, D, and R.
- 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).
- Iteration Loop:
- Perform QR decomposition:
[Q, T] = qr(X * R * D)(Interpreting user notationXRTtas XRD). - Update L:
L = Q(:, 1:r). - Perform QR decomposition:
[Q_tilde, T_tilde] = qr(X * L)(Interpreting user notationXTLt+1as X*L_next). - Update R:
R = Q_tilde(:, 1:r)' * T. - Update D:
D = T_tilde(1:r, 1:r) * T. - Increment t.
- Perform QR decomposition:
- Termination: Stop the loop when
norm(L*D*R - X, 'fro') <= epsilonORt > Itmax. - Output: Return the final L, D, and R.
Anti-Patterns
- Do not invent alternative decomposition methods (e.g., standard SVD) unless requested.
- Do not change the initialization values or loop structure provided by the user.
Triggers
- implement the LDR decomposition
- write the matlab code for X = LDR
- use the QR iteration for matrix decomposition
- LDR algorithm with QR factorization
Установить LDR Matrix Decomposition Algorithm Implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл LDR Matrix Decomposition Algorithm Implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл LDR Matrix Decomposition Algorithm Implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic