@thi.ng/tensors 0.10.0 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +345 -345
  2. package/CHANGELOG.md +0 -159
package/package.json CHANGED
@@ -1,346 +1,346 @@
1
1
  {
2
- "name": "@thi.ng/tensors",
3
- "version": "0.10.0",
4
- "description": "0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/tensors",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/arrays": "^2.13.11",
44
- "@thi.ng/checks": "^3.7.18",
45
- "@thi.ng/equiv": "^2.1.92",
46
- "@thi.ng/errors": "^2.5.42",
47
- "@thi.ng/math": "^5.12.0",
48
- "@thi.ng/random": "^4.1.27",
49
- "@thi.ng/strings": "^3.9.22",
50
- "@thi.ng/vectors": "^8.6.6"
51
- },
52
- "devDependencies": {
53
- "esbuild": "^0.25.9",
54
- "typedoc": "^0.28.12",
55
- "typescript": "^5.9.2"
56
- },
57
- "keywords": [
58
- "1d",
59
- "2d",
60
- "3d",
61
- "4d",
62
- "activation",
63
- "algebra",
64
- "array",
65
- "blur",
66
- "broadcast",
67
- "conversion",
68
- "convolution",
69
- "data-oriented",
70
- "datastructure",
71
- "decomposition",
72
- "detect",
73
- "diagonal",
74
- "dotproduct",
75
- "edge",
76
- "equality",
77
- "filter",
78
- "gaussian",
79
- "gradient",
80
- "interval",
81
- "math",
82
- "matrix",
83
- "memory-mapped",
84
- "nd",
85
- "polymorphic",
86
- "pool",
87
- "presets",
88
- "random",
89
- "smoothstep",
90
- "step",
91
- "svd",
92
- "tensor",
93
- "typedarray",
94
- "typescript",
95
- "vector"
96
- ],
97
- "publishConfig": {
98
- "access": "public"
99
- },
100
- "browser": {
101
- "process": false,
102
- "setTimeout": false
103
- },
104
- "engines": {
105
- "node": ">=18"
106
- },
107
- "files": [
108
- "./*.js",
109
- "./*.d.ts"
110
- ],
111
- "exports": {
112
- ".": {
113
- "default": "./index.js"
114
- },
115
- "./abs": {
116
- "default": "./abs.js"
117
- },
118
- "./add": {
119
- "default": "./add.js"
120
- },
121
- "./addn": {
122
- "default": "./addn.js"
123
- },
124
- "./api": {
125
- "default": "./api.js"
126
- },
127
- "./apply-kernel": {
128
- "default": "./apply-kernel.js"
129
- },
130
- "./broadcast": {
131
- "default": "./broadcast.js"
132
- },
133
- "./clamp": {
134
- "default": "./clamp.js"
135
- },
136
- "./clampn": {
137
- "default": "./clampn.js"
138
- },
139
- "./convert": {
140
- "default": "./convert.js"
141
- },
142
- "./convolve": {
143
- "default": "./convolve.js"
144
- },
145
- "./cos": {
146
- "default": "./cos.js"
147
- },
148
- "./defopn": {
149
- "default": "./defopn.js"
150
- },
151
- "./defoprt": {
152
- "default": "./defoprt.js"
153
- },
154
- "./defoprtt": {
155
- "default": "./defoprtt.js"
156
- },
157
- "./defopt": {
158
- "default": "./defopt.js"
159
- },
160
- "./defoptn": {
161
- "default": "./defoptn.js"
162
- },
163
- "./defoptnn": {
164
- "default": "./defoptnn.js"
165
- },
166
- "./defoptt": {
167
- "default": "./defoptt.js"
168
- },
169
- "./defopttt": {
170
- "default": "./defopttt.js"
171
- },
172
- "./diagonal": {
173
- "default": "./diagonal.js"
174
- },
175
- "./div": {
176
- "default": "./div.js"
177
- },
178
- "./divn": {
179
- "default": "./divn.js"
180
- },
181
- "./dot": {
182
- "default": "./dot.js"
183
- },
184
- "./errors": {
185
- "default": "./errors.js"
186
- },
187
- "./exp": {
188
- "default": "./exp.js"
189
- },
190
- "./exp2": {
191
- "default": "./exp2.js"
192
- },
193
- "./filtered-indices": {
194
- "default": "./filtered-indices.js"
195
- },
196
- "./format": {
197
- "default": "./format.js"
198
- },
199
- "./identity": {
200
- "default": "./identity.js"
201
- },
202
- "./integrate": {
203
- "default": "./integrate.js"
204
- },
205
- "./kernels": {
206
- "default": "./kernels.js"
207
- },
208
- "./log": {
209
- "default": "./log.js"
210
- },
211
- "./log2": {
212
- "default": "./log2.js"
213
- },
214
- "./mag": {
215
- "default": "./mag.js"
216
- },
217
- "./magsq": {
218
- "default": "./magsq.js"
219
- },
220
- "./max": {
221
- "default": "./max.js"
222
- },
223
- "./maxn": {
224
- "default": "./maxn.js"
225
- },
226
- "./mean": {
227
- "default": "./mean.js"
228
- },
229
- "./min": {
230
- "default": "./min.js"
231
- },
232
- "./minn": {
233
- "default": "./minn.js"
234
- },
235
- "./mul": {
236
- "default": "./mul.js"
237
- },
238
- "./mulm": {
239
- "default": "./mulm.js"
240
- },
241
- "./muln": {
242
- "default": "./muln.js"
243
- },
244
- "./mulv": {
245
- "default": "./mulv.js"
246
- },
247
- "./normalize": {
248
- "default": "./normalize.js"
249
- },
250
- "./pow": {
251
- "default": "./pow.js"
252
- },
253
- "./pown": {
254
- "default": "./pown.js"
255
- },
256
- "./product": {
257
- "default": "./product.js"
258
- },
259
- "./rand-distrib": {
260
- "default": "./rand-distrib.js"
261
- },
262
- "./range": {
263
- "default": "./range.js"
264
- },
265
- "./relu": {
266
- "default": "./relu.js"
267
- },
268
- "./relun": {
269
- "default": "./relun.js"
270
- },
271
- "./sample": {
272
- "default": "./sample.js"
273
- },
274
- "./select": {
275
- "default": "./select.js"
276
- },
277
- "./set": {
278
- "default": "./set.js"
279
- },
280
- "./setn": {
281
- "default": "./setn.js"
282
- },
283
- "./sigmoid": {
284
- "default": "./sigmoid.js"
285
- },
286
- "./sin": {
287
- "default": "./sin.js"
288
- },
289
- "./smoothstep": {
290
- "default": "./smoothstep.js"
291
- },
292
- "./smoothstepn": {
293
- "default": "./smoothstepn.js"
294
- },
295
- "./softmax": {
296
- "default": "./softmax.js"
297
- },
298
- "./softplus": {
299
- "default": "./softplus.js"
300
- },
301
- "./sqrt": {
302
- "default": "./sqrt.js"
303
- },
304
- "./step": {
305
- "default": "./step.js"
306
- },
307
- "./stepn": {
308
- "default": "./stepn.js"
309
- },
310
- "./storage": {
311
- "default": "./storage.js"
312
- },
313
- "./sub": {
314
- "default": "./sub.js"
315
- },
316
- "./subn": {
317
- "default": "./subn.js"
318
- },
319
- "./sum": {
320
- "default": "./sum.js"
321
- },
322
- "./svd": {
323
- "default": "./svd.js"
324
- },
325
- "./swap": {
326
- "default": "./swap.js"
327
- },
328
- "./tan": {
329
- "default": "./tan.js"
330
- },
331
- "./tanh": {
332
- "default": "./tanh.js"
333
- },
334
- "./tensor": {
335
- "default": "./tensor.js"
336
- },
337
- "./top": {
338
- "default": "./top.js"
339
- }
340
- },
341
- "thi.ng": {
342
- "status": "alpha",
343
- "year": 2018
344
- },
345
- "gitHead": "e215a3e8de3809736ba0042c93bd8703a5a1a337\n"
346
- }
2
+ "name": "@thi.ng/tensors",
3
+ "version": "0.10.4",
4
+ "description": "0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/tensors",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.6",
43
+ "@thi.ng/arrays": "^2.13.15",
44
+ "@thi.ng/checks": "^3.7.22",
45
+ "@thi.ng/equiv": "^2.1.96",
46
+ "@thi.ng/errors": "^2.5.46",
47
+ "@thi.ng/math": "^5.13.3",
48
+ "@thi.ng/random": "^4.1.31",
49
+ "@thi.ng/strings": "^3.9.26",
50
+ "@thi.ng/vectors": "^8.6.10"
51
+ },
52
+ "devDependencies": {
53
+ "esbuild": "^0.25.11",
54
+ "typedoc": "^0.28.14",
55
+ "typescript": "^5.9.3"
56
+ },
57
+ "keywords": [
58
+ "1d",
59
+ "2d",
60
+ "3d",
61
+ "4d",
62
+ "activation",
63
+ "algebra",
64
+ "array",
65
+ "blur",
66
+ "broadcast",
67
+ "conversion",
68
+ "convolution",
69
+ "data-oriented",
70
+ "datastructure",
71
+ "decomposition",
72
+ "detect",
73
+ "diagonal",
74
+ "dotproduct",
75
+ "edge",
76
+ "equality",
77
+ "filter",
78
+ "gaussian",
79
+ "gradient",
80
+ "interval",
81
+ "math",
82
+ "matrix",
83
+ "memory-mapped",
84
+ "nd",
85
+ "polymorphic",
86
+ "pool",
87
+ "presets",
88
+ "random",
89
+ "smoothstep",
90
+ "step",
91
+ "svd",
92
+ "tensor",
93
+ "typedarray",
94
+ "typescript",
95
+ "vector"
96
+ ],
97
+ "publishConfig": {
98
+ "access": "public"
99
+ },
100
+ "browser": {
101
+ "process": false,
102
+ "setTimeout": false
103
+ },
104
+ "engines": {
105
+ "node": ">=18"
106
+ },
107
+ "files": [
108
+ "./*.js",
109
+ "./*.d.ts"
110
+ ],
111
+ "exports": {
112
+ ".": {
113
+ "default": "./index.js"
114
+ },
115
+ "./abs": {
116
+ "default": "./abs.js"
117
+ },
118
+ "./add": {
119
+ "default": "./add.js"
120
+ },
121
+ "./addn": {
122
+ "default": "./addn.js"
123
+ },
124
+ "./api": {
125
+ "default": "./api.js"
126
+ },
127
+ "./apply-kernel": {
128
+ "default": "./apply-kernel.js"
129
+ },
130
+ "./broadcast": {
131
+ "default": "./broadcast.js"
132
+ },
133
+ "./clamp": {
134
+ "default": "./clamp.js"
135
+ },
136
+ "./clampn": {
137
+ "default": "./clampn.js"
138
+ },
139
+ "./convert": {
140
+ "default": "./convert.js"
141
+ },
142
+ "./convolve": {
143
+ "default": "./convolve.js"
144
+ },
145
+ "./cos": {
146
+ "default": "./cos.js"
147
+ },
148
+ "./defopn": {
149
+ "default": "./defopn.js"
150
+ },
151
+ "./defoprt": {
152
+ "default": "./defoprt.js"
153
+ },
154
+ "./defoprtt": {
155
+ "default": "./defoprtt.js"
156
+ },
157
+ "./defopt": {
158
+ "default": "./defopt.js"
159
+ },
160
+ "./defoptn": {
161
+ "default": "./defoptn.js"
162
+ },
163
+ "./defoptnn": {
164
+ "default": "./defoptnn.js"
165
+ },
166
+ "./defoptt": {
167
+ "default": "./defoptt.js"
168
+ },
169
+ "./defopttt": {
170
+ "default": "./defopttt.js"
171
+ },
172
+ "./diagonal": {
173
+ "default": "./diagonal.js"
174
+ },
175
+ "./div": {
176
+ "default": "./div.js"
177
+ },
178
+ "./divn": {
179
+ "default": "./divn.js"
180
+ },
181
+ "./dot": {
182
+ "default": "./dot.js"
183
+ },
184
+ "./errors": {
185
+ "default": "./errors.js"
186
+ },
187
+ "./exp": {
188
+ "default": "./exp.js"
189
+ },
190
+ "./exp2": {
191
+ "default": "./exp2.js"
192
+ },
193
+ "./filtered-indices": {
194
+ "default": "./filtered-indices.js"
195
+ },
196
+ "./format": {
197
+ "default": "./format.js"
198
+ },
199
+ "./identity": {
200
+ "default": "./identity.js"
201
+ },
202
+ "./integrate": {
203
+ "default": "./integrate.js"
204
+ },
205
+ "./kernels": {
206
+ "default": "./kernels.js"
207
+ },
208
+ "./log": {
209
+ "default": "./log.js"
210
+ },
211
+ "./log2": {
212
+ "default": "./log2.js"
213
+ },
214
+ "./mag": {
215
+ "default": "./mag.js"
216
+ },
217
+ "./magsq": {
218
+ "default": "./magsq.js"
219
+ },
220
+ "./max": {
221
+ "default": "./max.js"
222
+ },
223
+ "./maxn": {
224
+ "default": "./maxn.js"
225
+ },
226
+ "./mean": {
227
+ "default": "./mean.js"
228
+ },
229
+ "./min": {
230
+ "default": "./min.js"
231
+ },
232
+ "./minn": {
233
+ "default": "./minn.js"
234
+ },
235
+ "./mul": {
236
+ "default": "./mul.js"
237
+ },
238
+ "./mulm": {
239
+ "default": "./mulm.js"
240
+ },
241
+ "./muln": {
242
+ "default": "./muln.js"
243
+ },
244
+ "./mulv": {
245
+ "default": "./mulv.js"
246
+ },
247
+ "./normalize": {
248
+ "default": "./normalize.js"
249
+ },
250
+ "./pow": {
251
+ "default": "./pow.js"
252
+ },
253
+ "./pown": {
254
+ "default": "./pown.js"
255
+ },
256
+ "./product": {
257
+ "default": "./product.js"
258
+ },
259
+ "./rand-distrib": {
260
+ "default": "./rand-distrib.js"
261
+ },
262
+ "./range": {
263
+ "default": "./range.js"
264
+ },
265
+ "./relu": {
266
+ "default": "./relu.js"
267
+ },
268
+ "./relun": {
269
+ "default": "./relun.js"
270
+ },
271
+ "./sample": {
272
+ "default": "./sample.js"
273
+ },
274
+ "./select": {
275
+ "default": "./select.js"
276
+ },
277
+ "./set": {
278
+ "default": "./set.js"
279
+ },
280
+ "./setn": {
281
+ "default": "./setn.js"
282
+ },
283
+ "./sigmoid": {
284
+ "default": "./sigmoid.js"
285
+ },
286
+ "./sin": {
287
+ "default": "./sin.js"
288
+ },
289
+ "./smoothstep": {
290
+ "default": "./smoothstep.js"
291
+ },
292
+ "./smoothstepn": {
293
+ "default": "./smoothstepn.js"
294
+ },
295
+ "./softmax": {
296
+ "default": "./softmax.js"
297
+ },
298
+ "./softplus": {
299
+ "default": "./softplus.js"
300
+ },
301
+ "./sqrt": {
302
+ "default": "./sqrt.js"
303
+ },
304
+ "./step": {
305
+ "default": "./step.js"
306
+ },
307
+ "./stepn": {
308
+ "default": "./stepn.js"
309
+ },
310
+ "./storage": {
311
+ "default": "./storage.js"
312
+ },
313
+ "./sub": {
314
+ "default": "./sub.js"
315
+ },
316
+ "./subn": {
317
+ "default": "./subn.js"
318
+ },
319
+ "./sum": {
320
+ "default": "./sum.js"
321
+ },
322
+ "./svd": {
323
+ "default": "./svd.js"
324
+ },
325
+ "./swap": {
326
+ "default": "./swap.js"
327
+ },
328
+ "./tan": {
329
+ "default": "./tan.js"
330
+ },
331
+ "./tanh": {
332
+ "default": "./tanh.js"
333
+ },
334
+ "./tensor": {
335
+ "default": "./tensor.js"
336
+ },
337
+ "./top": {
338
+ "default": "./top.js"
339
+ }
340
+ },
341
+ "thi.ng": {
342
+ "status": "alpha",
343
+ "year": 2018
344
+ },
345
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
346
+ }
package/CHANGELOG.md DELETED
@@ -1,159 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ## [0.10.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.10.0) (2025-09-01)
15
-
16
- #### 🚀 Features
17
-
18
- - add 1D/2D/3D samplers and resampling fns ([2130067](https://github.com/thi-ng/umbrella/commit/2130067))
19
- - add `defSampler1/2/3/4()` and supporting helpers
20
- - add sampling kernel presets:
21
- - `SAMPLE_NEAREST`
22
- - `SAMPLE_LINEAR`
23
- - `SAMPLE_CUBIC`
24
- - `SAMPLE_LANCZOS` (higher order)
25
- - add `resample1/2/3()` fns
26
-
27
- ## [0.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.9.0) (2025-08-16)
28
-
29
- #### 🚀 Features
30
-
31
- - add 0-dim (wrapped scalar) tensor support ([cd22ee6](https://github.com/thi-ng/umbrella/commit/cd22ee6))
32
- - add `Tensor0`, `Shape0`
33
- - update HOF tensor op generators
34
- - add/update tests
35
-
36
- ## [0.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.8.0) (2025-07-10)
37
-
38
- #### 🚀 Features
39
-
40
- - add `step()`/`smoothStep()` variations ([b433462](https://github.com/thi-ng/umbrella/commit/b433462))
41
- - add ITensor.crop() ([77e294d](https://github.com/thi-ng/umbrella/commit/77e294d))
42
-
43
- ## [0.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.7.0) (2025-07-09)
44
-
45
- #### 🚀 Features
46
-
47
- - add `integrate()` tensor op ([fe39a4a](https://github.com/thi-ng/umbrella/commit/fe39a4a))
48
- - add `TensorLike` and `asTensor()` ([f76d9a6](https://github.com/thi-ng/umbrella/commit/f76d9a6))
49
-
50
- #### ♻️ Refactoring
51
-
52
- - migrate `asTensor()` to convert.ts ([fcb83c5](https://github.com/thi-ng/umbrella/commit/fcb83c5))
53
-
54
- ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.6.0) (2025-06-05)
55
-
56
- #### 🚀 Features
57
-
58
- - update defOpRT()/defOpRTT() ([8099abc](https://github.com/thi-ng/umbrella/commit/8099abc))
59
- - add optional `complete` fn to produce/transform final result (reducer like)
60
- - add mean() tensor op ([2f15d21](https://github.com/thi-ng/umbrella/commit/2f15d21))
61
-
62
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.5.0) (2025-05-28)
63
-
64
- #### 🚀 Features
65
-
66
- - add convolve() (1D/2D/3D versions) ([bc9a6eb](https://github.com/thi-ng/umbrella/commit/bc9a6eb))
67
- - add `constant()`, refactor `ones()` ([8cdd68c](https://github.com/thi-ng/umbrella/commit/8cdd68c))
68
- - add convolution kernel presets ([e553f06](https://github.com/thi-ng/umbrella/commit/e553f06))
69
- - add 1D/2D/3D sobel kernels
70
- - add 2D box blur
71
- - add 2D gaussian blur
72
- - add/update/rename convolution kernels ([025c7ba](https://github.com/thi-ng/umbrella/commit/025c7ba))
73
- - add `applyKernel()`, add/update kernel presets ([b8c2a7a](https://github.com/thi-ng/umbrella/commit/b8c2a7a))
74
- - add `fromFloatBuffer()` conversion ([d78a0d3](https://github.com/thi-ng/umbrella/commit/d78a0d3))
75
-
76
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.4.0) (2025-05-12)
77
-
78
- #### 🚀 Features
79
-
80
- - add release() handling for tensors ([da06312](https://github.com/thi-ng/umbrella/commit/da06312))
81
- - add data type support for range() options ([90d02bc](https://github.com/thi-ng/umbrella/commit/90d02bc))
82
-
83
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.3.0) (2025-05-08)
84
-
85
- #### 🚀 Features
86
-
87
- - add swap(), update defOpRT/TT() fns ([5d2dd2a](https://github.com/thi-ng/umbrella/commit/5d2dd2a))
88
- - add range() tensor factory ([a8a6365](https://github.com/thi-ng/umbrella/commit/a8a6365))
89
- - add ITensor.position() & impls ([595764d](https://github.com/thi-ng/umbrella/commit/595764d))
90
- - add filteredIndices() & presets ([edd8983](https://github.com/thi-ng/umbrella/commit/edd8983))
91
- - add nonZeroIndices()
92
- - add negativeIndices(), positiveIndices()
93
-
94
- #### 🩹 Bug fixes
95
-
96
- - update ITensor.broadcast() return type ([f7b2e7a](https://github.com/thi-ng/umbrella/commit/f7b2e7a))
97
-
98
- #### ♻️ Refactoring
99
-
100
- - update range() impl (w/o dependencies) ([ce89d71](https://github.com/thi-ng/umbrella/commit/ce89d71))
101
-
102
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.2.0) (2025-05-02)
103
-
104
- #### 🚀 Features
105
-
106
- - add `zeroes()`/`ones()` ([eb6f82d](https://github.com/thi-ng/umbrella/commit/eb6f82d))
107
- - add singular value decomp `svd()` ([8902157](https://github.com/thi-ng/umbrella/commit/8902157))
108
- - add `diagonal()` and `trace()` fns ([47a0e73](https://github.com/thi-ng/umbrella/commit/47a0e73))
109
- - add broadcast(), add ITensor.broadcast() ([b9b2dfc](https://github.com/thi-ng/umbrella/commit/b9b2dfc))
110
- - update all tensor ops & op generators ([47b3e4e](https://github.com/thi-ng/umbrella/commit/47b3e4e))
111
- - add broadcasting support where possible
112
- - update all `defOpXXX` HOF generators
113
- - replace & remove various `TensorOpXXX` function types
114
- - update all tensor ops, only keep one version per op
115
- - update doc strings
116
-
117
- #### 🩹 Bug fixes
118
-
119
- - add missing `randDistrib4()` ([eb2ded2](https://github.com/thi-ng/umbrella/commit/eb2ded2))
120
-
121
- #### ♻️ Refactoring
122
-
123
- - update internal local var handling in various tensor ops ([c02c2a6](https://github.com/thi-ng/umbrella/commit/c02c2a6))
124
- - internal updates dot(), identity(), select() ([c0ed334](https://github.com/thi-ng/umbrella/commit/c0ed334))
125
- - update top() return type ([dcab223](https://github.com/thi-ng/umbrella/commit/dcab223))
126
-
127
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/tensors@0.1.0) (2025-04-30)
128
-
129
- #### 🚀 Features
130
-
131
- - initial import (old code, needs update) ([dc4f2b4](https://github.com/thi-ng/umbrella/commit/dc4f2b4))
132
- - major updates & refactoring/cleanup ([49249a9](https://github.com/thi-ng/umbrella/commit/49249a9))
133
- - update & restructure defOpXX() fns ([a96ecf8](https://github.com/thi-ng/umbrella/commit/a96ecf8))
134
- - update TensorOpts and tensor factory fn, add docs ([21b8d48](https://github.com/thi-ng/umbrella/commit/21b8d48))
135
- - update/replace tensor op generators, add op types ([2a00949](https://github.com/thi-ng/umbrella/commit/2a00949))
136
- - add first set of common math ops ([00c02c1](https://github.com/thi-ng/umbrella/commit/00c02c1))
137
- - add matrix-vector multiply, add custom error type ([a005276](https://github.com/thi-ng/umbrella/commit/a005276))
138
- - add `identity()` factory fn ([1f2e914](https://github.com/thi-ng/umbrella/commit/1f2e914))
139
- - add defOpRT(), add product/sum reducers ([19b6a9a](https://github.com/thi-ng/umbrella/commit/19b6a9a))
140
- - add exp, log, softMax ops, update pkg exports ([465b0d2](https://github.com/thi-ng/umbrella/commit/465b0d2))
141
- - add various math ops ([9e385ad](https://github.com/thi-ng/umbrella/commit/9e385ad))
142
- - add/update various math ops, types, op factories ([a64468e](https://github.com/thi-ng/umbrella/commit/a64468e))
143
- - add select(), argMin, argMax() fns ([fa508e1](https://github.com/thi-ng/umbrella/commit/fa508e1))
144
- - add `print()` helper ([6c2e347](https://github.com/thi-ng/umbrella/commit/6c2e347))
145
- - rename existing fn => `debug()`
146
- - add softPlus() op ([1d85630](https://github.com/thi-ng/umbrella/commit/1d85630))
147
- - add 4D tensor support & ops ([e3c9a0f](https://github.com/thi-ng/umbrella/commit/e3c9a0f))
148
- - add exp2(), log2() ops ([18544a4](https://github.com/thi-ng/umbrella/commit/18544a4))
149
- - update tensor(), add tensorFromArray(), add types/generics ([204734d](https://github.com/thi-ng/umbrella/commit/204734d))
150
-
151
- #### 🩹 Bug fixes
152
-
153
- - fix tensor scalar ops ([a26309d](https://github.com/thi-ng/umbrella/commit/a26309d))
154
-
155
- #### ♻️ Refactoring
156
-
157
- - minor update mulM() ([8bec8d1](https://github.com/thi-ng/umbrella/commit/8bec8d1))
158
- - deduplicate tensor impls ([5fac485](https://github.com/thi-ng/umbrella/commit/5fac485))
159
- - minor internal update arg types ([be56f5a](https://github.com/thi-ng/umbrella/commit/be56f5a))