Commit Graph
47 Commits
Author SHA1 Message Date
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 b8b98cb758 add optional shape argument 2026-02-07 16:37:39 +01:00
mcDandy 0c1d3f52d6 argsort + add do nothing option on tensor size mismatch 2026-02-04 19:09:56 +01:00
mcDandy 38e795eb35 Better errors + batch shuffle (subject to rename) 2026-02-03 13:59:19 +01:00
mcDandy e01a74d6ad add tensor creation and fix ruff 2026-02-03 10:17:43 +01:00
mcDandy d53d725fcc AI fix stack and large refactor + add count 2026-02-02 20:16:22 +01:00
mcDandy 881a18d392 added stack prefix to stack operations 2026-02-02 15:17:59 +01:00
mcDandy ac0c2f43d3 Add None. It is sometimes usefull to create empty variable 2026-02-01 17:26:53 +01:00
mcDandy 93c4559bfd add optional semicolon 2026-02-01 16:45:32 +01:00
mcDandy 3467cf0663 (AI) set value based on position 2026-02-01 15:21:32 +01:00
mcDandy 2ee4dfd507 crop, get_value + formating 2026-02-01 15:19:24 +01:00
mcDandy 270a539d91 Addid scientific notation. I forgot to commit. 2026-02-01 15:18:19 +01:00
mcDandy ce0c620a36 did I not puth it? 2026-02-01 15:17:23 +01:00
mcDandy a84a3b16e0 add support for scientific notation 2026-01-30 23:27:20 +01:00
mcDandy e13e3ac013 fixed an issue when (probably) multiplying list and tensor 2026-01-30 21:22:58 +01:00
mcDandy db8000d51e add device info to visitor and fixed forgotten ' 2026-01-30 14:22:13 +01:00
mcDandy 03dcb7c424 aded break and continue 2026-01-30 11:35:20 +01:00
mcDandy e7d913ccd0 add time measurement and updated readme 2026-01-29 12:54:53 +01:00
mcDandy 13e5b4e800 Add comments 2026-01-29 11:19:02 +01:00
mcDandy 380021fdf1 Add stack 2026-01-27 19:35:23 +01:00
mcDandy c3b7822ad2 (AI) merge some features from Computer architecture class project 2026-01-27 13:41:15 +01:00
mcDandy 1a80777aac optional auto-permute for gausian and edge 2026-01-25 22:06:54 +01:00
mcDandy 9e3e21da4c any, all, easings, cumulative sum and product 2026-01-25 11:42:09 +01:00
mcDandy 5d634ecaf4 Added ternary expression
Little higher then in other languages (tired of needing to bracket when the compExpr is more then variable)

Also IT SHOULD BE TURING COMPLETE NOW
2026-01-25 00:03:56 +01:00
mcDandy c61aec2faf add function which replaces NaN, inf and -inf 2026-01-24 14:46:50 +01:00
mcDandy a870ca0689 add ability to declare custom variables 2026-01-24 11:46:57 +01:00
mcDandy 01c9a9a3c2 fix typo 2026-01-20 15:33:18 +01:00
mcDandy 27079a0394 ai found some typos when writing tests for me 2026-01-20 13:20:40 +01:00
mcDandy b83e06e83f add random generators 2026-01-20 13:08:14 +01:00
mcDandy b59937d351 add append function 2026-01-19 20:43:19 +01:00
mcDandy 8e0b1c65f5 (ai) add custom functions 2026-01-19 17:22:23 +01:00
mcDandy 8d5709ba6f added cosine similarity, flip, covariance and sorting 2026-01-17 14:04:27 +01:00
mcDandy 6335071950 Add selector 2026-01-13 15:40:42 +01:00
mcDandy c9cd557666 Added moment function
moment(x,0,1) = mean(x)
moment(x,mean(x),2) = var(x)
2026-01-11 15:12:35 +01:00
mcDandy 1b6b35f5d6 (AI) optimalise quantile and simillar for large count in quantile
passing large tensor into quantlie,quartile or percentile no longer takes minutes + limit testing with image from my phone (3072 x 4080 x 3)
2026-01-10 15:24:23 +01:00
mcDandy 43c3d060b0 add statistical functions 2026-01-10 14:13:44 +01:00
mcDandy 08cb017e57 forgot a line 2026-01-09 23:29:41 +01:00
mcDandy fcc24fca04 (AI) refactor - Lexer and parser grammer are separated 2026-01-09 23:29:24 +01:00
mcDandy 9e55ed1209 added the permute which does not rearrange dims. 2026-01-09 23:06:35 +01:00
mcDandy c519cb1dc9 Update MathExpr.g4 2026-01-09 13:28:56 +01:00
mcDandy f4edef96cc add topk, botk and convolution inverse function 2026-01-09 13:28:46 +01:00
mcDandy 3c948c9ddd add range and using listst to duplicate batches and do operation with different value on each
Works only with operators. Does not work with functions
2026-01-04 21:10:37 +01:00
mcDandy 16fc9a0258 add reshape function + readme touches 2026-01-04 18:49:43 +01:00
mcDandy 458901bb2a Fix map function + add common variables
should have added them from beginning instead of giving custom names to them. Will not be deleting that.
2025-12-27 17:58:13 +01:00
mcDandy e44fd922d4 added map,conv and permute
map - maps points based on equations
conv - allows running convolution filter
permute - switches dimension position
2025-12-26 18:42:47 +01:00
mcDandy 967188b681 Added || shorthand for abs and snorm 2025-12-19 22:53:08 +01:00
mcDandy f04c2320ed Moved more_math out of src, apparently it is done like that. 2025-12-11 21:35:57 +01:00