@thi.ng/tensors 0.11.12 → 0.11.13

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +13 -13
  3. package/tensor.js +6 -0
package/README.md CHANGED
@@ -254,7 +254,7 @@ For Node.js REPL:
254
254
  const ten = await import("@thi.ng/tensors");
255
255
  ```
256
256
 
257
- Package sizes (brotli'd, pre-treeshake): ESM: 11.80 KB
257
+ Package sizes (brotli'd, pre-treeshake): ESM: 11.85 KB
258
258
 
259
259
  ## Dependencies
260
260
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/tensors",
3
- "version": "0.11.12",
3
+ "version": "0.11.13",
4
4
  "description": "0D/1D/2D/3D/4D tensors with extensible polymorphic operations and customizable storage",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,19 +40,19 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.18",
44
- "@thi.ng/arrays": "^2.14.14",
45
- "@thi.ng/checks": "^3.8.8",
46
- "@thi.ng/equiv": "^2.1.107",
47
- "@thi.ng/errors": "^2.6.7",
48
- "@thi.ng/math": "^5.15.7",
49
- "@thi.ng/random": "^4.1.43",
50
- "@thi.ng/strings": "^3.12.0",
51
- "@thi.ng/vectors": "^8.6.27"
43
+ "@thi.ng/api": "^8.12.19",
44
+ "@thi.ng/arrays": "^2.14.15",
45
+ "@thi.ng/checks": "^3.8.9",
46
+ "@thi.ng/equiv": "^2.1.108",
47
+ "@thi.ng/errors": "^2.6.8",
48
+ "@thi.ng/math": "^5.15.8",
49
+ "@thi.ng/random": "^4.1.44",
50
+ "@thi.ng/strings": "^3.12.1",
51
+ "@thi.ng/vectors": "^8.6.28"
52
52
  },
53
53
  "devDependencies": {
54
- "esbuild": "^0.27.2",
55
- "typedoc": "^0.28.16",
54
+ "esbuild": "^0.28.0",
55
+ "typedoc": "^0.28.18",
56
56
  "typescript": "^5.9.3"
57
57
  },
58
58
  "keywords": [
@@ -352,5 +352,5 @@
352
352
  "status": "alpha",
353
353
  "year": 2018
354
354
  },
355
- "gitHead": "929fb6590178a41cbb77cbb87e07c59c61381607\n"
355
+ "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
356
356
  }
package/tensor.js CHANGED
@@ -20,6 +20,12 @@ class ATensor {
20
20
  this.stride = stride;
21
21
  this.offset = offset;
22
22
  }
23
+ type;
24
+ storage;
25
+ data;
26
+ shape;
27
+ stride;
28
+ offset;
23
29
  _n;
24
30
  get order() {
25
31
  return strideOrder(this.stride);