Commit Graph
135 Commits
Author SHA1 Message Date
mcDandy e9b9486bf1 Update MathExpr.g4 2026-02-26 12:46:32 +01:00
mcDandy d80c8c1156 AI: add string functions 2026-02-26 12:46:13 +01:00
mcDandy 800bb10835 add better error in bitwise op 2026-02-25 18:44:24 +01:00
mcDandy 1c32d60a56 add string support to [] 2026-02-24 20:13:19 +01:00
mcDandy 512635f2c0 overlay string and list support 2026-02-24 15:34:00 +01:00
mcDandy ca98326f3e add string compare 2026-02-23 15:21:39 +01:00
mcDandy e4e5b21b56 crop works as substr 2026-02-22 16:15:10 +01:00
mcDandy 3d60b109bd string can be added to anything now 2026-02-22 15:53:15 +01:00
mcDandy 18e9221aa2 better error message when dividing by 0 (and others) 2026-02-22 15:34:44 +01:00
mcDandy dc67e74789 String as a type 2026-02-22 11:59:50 +01:00
mcDandy 62475fdd65 actually regenerate parser 2026-02-20 18:04:18 +01:00
mcDandy ebbc837629 add overlay (rewrode code by AI) and fix voroni 2026-02-20 18:03:25 +01:00
mcDandy ada7688deb fix problem after AI 2026-02-20 17:09:46 +01:00
mcDandy 79c403bd15 add missing to readme 2026-02-19 23:59:39 +01:00
mcDandy 53fa16dd70 Update UnifiedMathVisitor.py 2026-02-19 22:34:59 +01:00
mcDandy fa018e6e4f fuíxed list OP tensor when first dim of tensor is the same size as list lenght 2026-02-19 22:33:46 +01:00
mcDandy edb7908328 remove debug prints 2026-02-19 10:08:21 +01:00
mcDandy 1037a88b40 import forgitten pad function 2026-02-19 09:04:02 +01:00
mcDandy 0f76196dda edge cases for clamp if type is wierd combination of list and tensors 2026-02-18 10:26:07 +01:00
mcDandy 891634a912 AI: add plasma, voronoi and perlin noise 2026-02-18 00:49:25 +01:00
mcDandy 412ea5e89b shape returns list now 2026-02-17 00:34:51 +01:00
mcDandy 0a8b87d574 add type to tensor optionally 2026-02-16 14:50:42 +01:00
mcDandy e3676d681f add type optional to tensor 2026-02-15 16:27:08 +01:00
mcDandy 9715cd273f Back to what AI created. I thought I could do better. 2026-02-15 16:10:27 +01:00
mcDandy e1f37d25e3 add shape function 2026-02-15 15:47:52 +01:00
mcDandy 0604551199 fix what AI messed up. 2026-02-15 12:20:04 +01:00
mcDandy 9b6c10b664 AI: fix some tests 2026-02-15 11:47:32 +01:00
mcDandy 7cd8e0362e ruff + AI: fix determnism 2026-02-14 23:04:17 +01:00
mcDandy f57f224fd6 AI: add noise 2026-02-14 22:38:28 +01:00
mcDandy a2aa2601d5 safety if we get tensor there 2026-02-14 11:42:59 +01:00
mcDandy 0817e50109 AI: fix reshape 2026-02-14 11:35:15 +01:00
mcDandy 04906ee2cb fix crashes 2026-02-13 23:54:11 +01:00
mcDandy 4a265c4768 grammer got reverted 2026-02-13 23:45:14 +01:00
mcDandy 588a74cfeb add bit count, bit shifts + tests + restore what AI deleted 2026-02-13 23:15:50 +01:00
mcDandy 93209bf261 AI fix 2026-02-13 22:25:00 +01:00
mcDandy 0d65516cbb AI: rewrite bin_op and add fp16 support for bitwise operations 2026-02-13 16:23:03 +01:00
mcDandy 2a0fa503c9 AI fix and add fp8 support 2026-02-13 15:40:47 +01:00
mcDandy 9a9274f443 fix grammer 2026-02-13 14:06:42 +01:00
mcDandy 8c2eab8626 AI: bitwise - check later manually 2026-02-13 14:02:50 +01:00
mcDandy 2ae4674336 AI: fix mask 2026-02-13 14:02:03 +01:00
mcDandy 3d9e37b602 motion functions and permute fix 2026-02-12 08:51:20 +01:00
mcDandy 4bdbdd7bde forgot to add matmul and cross code 2026-02-10 16:25:46 +01:00
mcDandy 5072b191b7 Add tensor ops and parser support
Expose new tensor operations (softmax, softmin, argmin, argmax, unique, flatten, matmul, cross, and related tensor helpers) in the README and add corresponding grammar rules/tokens. Updated MathExpr.g4 to include new func productions and token definitions, and regenerated parser artifacts (MathExprLexer/Parser/Listener/Visitor/UnifiedMathVisitor and .interp/.tokens files). Also includes minor README formatting/typo fixes.
2026-02-10 15:38:47 +01:00
mcDandy 4935791ebb rewrite index expression 2026-02-08 17:10:22 +01:00
mcDandy 6122ca4b0c unnecesery casting 2026-02-08 12:24:40 +01:00
mcDandy ebdaefbe14 forgot a zero 2026-02-08 11:16:11 +01:00
mcDandy fb3e41e54f fix 2026-02-08 11:10:25 +01:00
mcDandy b8b98cb758 add optional shape argument 2026-02-07 16:37:39 +01:00
mcDandy 29ecec9a9e return scalar instead of 1 element tensor 2026-02-06 10:28:31 +01:00
mcDandy 0c1d3f52d6 argsort + add do nothing option on tensor size mismatch 2026-02-04 19:09:56 +01:00