Skip to content

v0.1.0

Choose a tag to compare

@TYEclipse TYEclipse released this 07 Sep 21:57
· 4 commits to main since this release

dsh-linalg v0.1.0 — Linear algebra toolbox for DeepSeek Harness

First release: four pure-math tools with zero runtime dependencies.

✨ New

  • matrix_multiply — matrix product A·B with exact dimension checking
  • matrix_compute — transpose / determinant / inverse / trace / reduced row echelon form (rref)
  • solve_linear — solve Ax = b, classified as unique / infinitely many (particular solution + nullspace basis + free-variable count) / no solution (inconsistent system)
  • vector_ops — dot / cross (3D) / norm / projection / angle (degrees)

🔧 Implementation

  • Gaussian elimination with partial pivoting; pivot tolerance 1e-12
  • All output numbers rounded to 10 decimal places (configurable), near-zero values snapped to exactly 0
  • Singular inverses and inconsistent systems fail cleanly with explicit messages — never fabricate results
  • 84 tests, anchored by an independent exact-arithmetic (fractions) oracle

📦 Install

dsh plugin --profile web add github:TYEclipse/dsh-linalg

dsh-linalg v0.1.0 — DeepSeek Harness 线性代数工具箱

首发版本:四个纯数学工具,零运行时依赖。

✨ 新增

  • matrix_multiply — 矩阵乘法(严格维度校验)
  • matrix_compute — 转置 / 行列式 / 逆矩阵 / 迹 / 行最简形(rref)
  • solve_linear — 解线性方程组 Ax=b,分类为唯一解 / 无穷多解(特解+零空间基+自由变量个数)/ 无解(矛盾方程组)
  • vector_ops — 点积 / 叉积(3D)/ 模长 / 投影 / 夹角(度)

🔧 实现

  • 部分主元高斯消元,主元容差 1e-12
  • 所有输出统一舍入到 10 位小数(可配),接近零的值精确归零
  • 奇异矩阵与矛盾方程组明确报错,绝不编造结果
  • 84 个测试,锚点由独立精确算术(fractions)oracle 生成

📦 安装

dsh plugin --profile web add github:TYEclipse/dsh-linalg