Skip to content

Commit 2507dbf

Browse files
committed
feat: implement runtime evaluation for Kernel, Dimension, Degree, and Hom with corresponding tests
1 parent bff7db2 commit 2507dbf

4 files changed

Lines changed: 987 additions & 62 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,18 @@ ce.simplificationRules.push({
322322
operator notation. The corresponding function symbols (`Kernel`, `Dimension`,
323323
`Degree`, `Hom`) are also registered in the linear algebra library.
324324

325+
- **Implemented runtime evaluation for `Kernel`, `Dimension`, `Degree`, and
326+
`Hom`**:
327+
- `Kernel` now computes a numeric null-space basis (for scalar/vector/matrix
328+
real inputs) and returns it as a list of basis vectors.
329+
- `Dimension` now evaluates finite dimensions for concrete tensors and
330+
collections, and computes `dim(Hom(V, W)) = dim(V) * dim(W)` when both
331+
dimensions are inferable.
332+
- `Degree` now evaluates polynomial degree for polynomial-form expressions
333+
while keeping ambiguous bare symbols (for example `Degree(p)`) unevaluated.
334+
- `Hom` now evaluates/simplifies its arguments while preserving the symbolic
335+
`Hom(...)` form.
336+
325337
### LaTeX Parsing
326338

327339
- **`arguments: 'implicit'` option for function dictionary entries**: Function

0 commit comments

Comments
 (0)