# Matrices

> Problem-solving strategies for matrices in linear algebra

- Skill: `majiayu000/matrices` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/matrices`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/matrices/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/matrices

---


# Matrices

## When to Use

Use this skill when working on matrices problems in linear algebra.

## Decision Tree


1. **Identify Matrix Type**
   - Square, symmetric, orthogonal, diagonal?
   - Check properties with `sympy_compute.py matrix_type`

2. **Basic Operations**
   - Multiplication: `sympy_compute.py matmul "A" "B"`
   - Inverse: `sympy_compute.py inverse "A"`
   - Transpose: `sympy_compute.py transpose "A"`

3. **Solve Linear Systems**
   - Ax = b: `sympy_compute.py linsolve "A" "b"`
   - Check consistency with `z3_solve.py sat`

4. **Decompositions**
   - LU: `sympy_compute.py lu "A"`
   - QR: `sympy_compute.py qr "A"`
   - SVD: `sympy_compute.py svd "A"`


## Tool Commands

### Sympy_Inverse
```bash
uv run python -m runtime.harness scripts/sympy_compute.py inverse "[[1,2],[3,4]]"
```

### Sympy_Det
```bash
uv run python -m runtime.harness scripts/sympy_compute.py det "[[a,b],[c,d]]"
```

### Sympy_Linsolve
```bash
uv run python -m runtime.harness scripts/sympy_compute.py linsolve "[[1,2],[3,4]]" "[5,6]"
```

## Cognitive Tools Reference

See `.claude/skills/math-mode/SKILL.md` for full tool documentation.

