Files
marqdo/tests/ext/linalg-formula-smoke.mq.md
T
cflmyandCursor 96da88e168 feat(linalg): L0–L1 formula-first MatExpr plugin
Add plugins/linalg with symbol/mul/transpose/inv simplify (R1–R5),
EN/ZH L1, CATALOG/ext add wiring, release native assets, and smokes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 14:10:54 +08:00

23 lines
460 B
Markdown

---
title: linalg formula smoke
description: (AB)^T simplifies to B^T*A^T; ping ok.
import la:ext/linalg/linalg.mq.md
---
# main
*`A` = > la.symbol name="A" rows=2 cols=3*
*`B` = > la.symbol name="B" rows=3 cols=2*
*`P` = > la.mul a=`A` b=`B`*
*`T` = > la.transpose expr=`P`*
*`S` = > la.simplify expr=`T`*
*`txt` = > la.ascii expr=`S`*
> print text=`txt`
*`ping` = > la.ping*
*`ok` = ping[^ok]*
1. `ok`
> print text=ping-ok
2. *
> print text=ping-fail