@danielsimonjr/mathts-tensor 0.2.15 → 0.2.16

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/dist/index.d.ts +7 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { DenseMatrix } from '@danielsimonjr/mathts-matrix';
2
+ import { NestedArray as NestedArray$1 } from '@danielsimonjr/mathts-core/internal';
2
3
 
3
4
  /**
4
5
  * Index — an immutable value type carrying a unique identity, a dimension,
@@ -89,7 +90,12 @@ declare function idx(dim: number, name?: string, opts?: Omit<IndexOpts, 'name'>)
89
90
  * DenseMatrix (Float64Array, row-major), generalised to arbitrary rank.
90
91
  */
91
92
 
92
- type NestedArray = number | NestedArray[];
93
+ /**
94
+ * Consolidated onto `@danielsimonjr/mathts-core`'s generic `NestedArray<T>`,
95
+ * specialised to `number` (Tensor is Float64Array-backed) — see
96
+ * docs/Architecture/duplicate-symbols.json.
97
+ */
98
+ type NestedArray = NestedArray$1<number>;
93
99
  interface EinsumSpec {
94
100
  readonly contractions: ReadonlyArray<{
95
101
  readonly pair: readonly [readonly [number, number], readonly [number, number]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/mathts-tensor",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Rank-N dense Tensor type for MathTS with Float64Array-backed storage",
5
5
  "author": "Daniel Simon Jr.",
6
6
  "license": "MIT",
@@ -31,8 +31,8 @@
31
31
  "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
32
  },
33
33
  "dependencies": {
34
- "@danielsimonjr/mathts-core": "^0.11.0",
35
- "@danielsimonjr/mathts-matrix": "^0.6.1"
34
+ "@danielsimonjr/mathts-core": "^0.12.0",
35
+ "@danielsimonjr/mathts-matrix": "^0.6.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.5.2",