Files
marqdo/examples/linalg-transpose/index.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

627 B

title, description, import
title description import
Transpose identity (formula document) (AB)^T = B^T A^T as a runnable lecture fragment.
la
ext/linalg/linalg.mq.md

Transpose reverses products

Declare shapes in a table, form (P = AB), then check ((AB)^\top = B^\top A^\top) by running the document.

main

shapes =

@ name rows cols
1 A 2 3
2 B 3 2

env = > la.declare table=shapes A = A B = B P = A * B t = > P.T_ascii

print text=t

  1. t == "B^T*A^T"

print text=identity-ok

print text=identity-fail