feat(linalg): matrix infix ops and # matrix methods

Dispatch +/−/* to the linalg plugin for matrix values, retag for EN/ZH
method chains, and expand # matrix with T/simplify/ascii-style methods.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-07 15:13:47 +08:00
1 parent c0fbe9b182
commit 51bb8767e3
16 files changed
+459 -57

No files matched your search

+2 -1
View File
@@ -171,7 +171,8 @@ pub fn to_dense_value(m: &CMat) -> Result<Value, String> {
})
.collect();
Ok(json!({
"_type": "linalg_dense",
"_type": "matrix",
"kind": "dense",
"rows": rows,
"cols": cols,
"data": data,