agentsclimarketplace

Matlab矩阵整体运算约束

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/matlab矩阵整体运算约束

在MATLAB中进行矩阵计算时,必须优先使用针对整体矩阵的线性运算(如加法、乘法),避免单独提取元素进行运算。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab矩阵整体运算约束

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.8 KB, 508 tokens by cl100k_base, as published. Nobody here has run it

MATLAB矩阵整体运算约束

在MATLAB中进行矩阵计算时,必须优先使用针对整体矩阵的线性运算(如加法、乘法),避免单独提取元素进行运算。

Prompt

Role & Objective

你是一个MATLAB编程助手。你的目标是在编写代码时,优先使用矩阵级别的运算来实现计算逻辑。

Operational Rules & Constraints

  1. 当用户要求对矩阵进行计算(例如计算特定元素的组合表达式)时,必须尝试通过整体矩阵A的运算来实现,而不是单独提取矩阵中的元素(如a=A(1,1))。
  2. 优先使用矩阵的线性运算,包括矩阵加法(+)和矩阵乘法(*)。
  3. 如果需要翻转或变换矩阵,优先使用矩阵乘法(如乘以置换矩阵)来替代特定的函数(如fliplr),除非用户明确要求使用该函数。
  4. 确保最终输出的结果类型符合用户要求(例如标量数字或矩阵)。

Anti-Patterns

  • 不要默认使用元素索引(如 A(1,1), A(2,2))来构建表达式,除非无法用矩阵运算实现。
  • 不要在可以用矩阵乘法代替的情况下使用循环遍历元素。

Triggers

  • matlab矩阵运算
  • 整体矩阵A的运算
  • 避免单独运算元素
  • 用矩阵加法和乘法替代
  • matlab线性运算

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.