@danielsimonjr/mathts-tensor 0.2.20 → 0.2.21

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.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # @danielsimonjr/mathts-tensor
2
-
3
- Rank-n tensor for [MathTS](https://github.com/danielsimonjr/mathts).
4
-
5
- Rank-N dense tensors for MathTS, backed by a single `Float64Array` with shape/stride metadata. Built on `@danielsimonjr/mathts-matrix`.
6
-
7
- ## Install
8
-
9
- ```sh
10
- npm install @danielsimonjr/mathts-tensor
11
- ```
12
-
13
- ## What it provides
14
-
15
- - `Tensor` construction from nested arrays / flat data + shape.
16
- - Elementwise ops, reshaping, broadcasting, reductions, and contraction.
17
- - The substrate for `@danielsimonjr/mathts-autograd`.
18
-
19
- ## License
20
-
21
- MIT (c) Daniel Simon Jr.
1
+ # @danielsimonjr/mathts-tensor
2
+
3
+ Rank-n tensor for [MathTS](https://github.com/danielsimonjr/mathts).
4
+
5
+ Rank-N dense tensors for MathTS, backed by a single `Float64Array` with shape/stride metadata. Built on `@danielsimonjr/mathts-matrix`.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @danielsimonjr/mathts-tensor
11
+ ```
12
+
13
+ ## What it provides
14
+
15
+ - `Tensor` construction from nested arrays / flat data + shape.
16
+ - Elementwise ops, reshaping, broadcasting, reductions, and contraction.
17
+ - The substrate for `@danielsimonjr/mathts-autograd`.
18
+
19
+ ## License
20
+
21
+ MIT (c) Daniel Simon Jr.
package/dist/Tensor.d.ts CHANGED
@@ -19,6 +19,11 @@ import { Index } from './named-index.js';
19
19
  * docs/Architecture/duplicate-symbols.json.
20
20
  */
21
21
  export type NestedArray = CoreNestedArray<number>;
22
+ /**
23
+ * Describes an einsum contraction for `Tensor.einsum`: contracted axis pairs and output (free) axes.
24
+ * Each contraction pair names two operand axes that must have the same size, or `einsum` throws.
25
+ * Every axis of an operand with rank >= 1 must occur in the spec, or `einsum` throws.
26
+ */
22
27
  export interface EinsumSpec {
23
28
  readonly contractions: ReadonlyArray<{
24
29
  readonly pair: readonly [readonly [number, number], readonly [number, number]];
@@ -28,6 +33,12 @@ export interface EinsumSpec {
28
33
  readonly axis: number;
29
34
  }>;
30
35
  }
36
+ /**
37
+ * Dense N-dimensional array of float64 values in row-major (C) order.
38
+ * The constructor keeps a reference to `data` and does not copy it.
39
+ * The constructor throws when `data.length` is not the product of `shape`,
40
+ * or when `axisLabels` is given and its length is not the rank.
41
+ */
31
42
  export declare class Tensor {
32
43
  readonly shape: ReadonlyArray<number>;
33
44
  readonly data: Float64Array;
@@ -1 +1 @@
1
- {"version":3,"file":"Tensor.d.ts","sourceRoot":"","sources":["../src/Tensor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAkB,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC;QACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;KAChF,CAAC,CAAC;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnF;AAED,qBAAa,MAAM;IACjB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,YAAY,C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AAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM,CAIjF;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM,CA6B9F;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CA4E/E;IAED;;;OAGG;IACH,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,MAAM,CAAC,YAAY;IAgB3B,OAAO,CAAC,MAAM,CAAC,SAAS;IAMxB,OAAO,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAK5C;IAED,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAe9C;IAED,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgB5B;IAED,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CA4D7D;IAMD;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAS3B;IAED;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,CAWrD;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAuG9B;CACF"}
@@ -53,6 +53,7 @@
53
53
  * so on. So a length-N input network has a length-(N-1) order array.
54
54
  */
55
55
  import { Tensor } from './Tensor.js';
56
+ /** Configures the size limit and the ordering algorithm for a tensor-network contraction. */
56
57
  export interface ContractNetworkOpts {
57
58
  /** Cap intermediate-tensor element count to avoid blowups. Default: 2^31. */
58
59
  maxIntermediateSize?: number;
@@ -64,6 +65,7 @@ export interface ContractNetworkOpts {
64
65
  */
65
66
  algorithm?: 'exact' | 'greedy' | 'auto';
66
67
  }
68
+ /** Contains the contracted tensor, the pairwise contraction order, its FLOP cost, and the intermediate sizes. */
67
69
  export interface ContractNetworkResult {
68
70
  result: Tensor;
69
71
  /** Pairwise contractions in (virtual) input-index space; see file header. */
@@ -1 +1 @@
1
- {"version":3,"file":"contraction-sequence.d.ts","sourceRoot":"","sources":["../src/contraction-sequence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,gBAAgB,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3D,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC1C;AA4pBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,mBAAmB,GACzB,qBAAqB,CAgDvB"}
1
+ {"version":3,"file":"contraction-sequence.d.ts","sourceRoot":"","sources":["../src/contraction-sequence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,6FAA6F;AAC7F,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CACzC;AAED,iHAAiH;AACjH,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,gBAAgB,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3D,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC1C;AA4pBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,mBAAmB,GACzB,qBAAqB,CAgDvB"}
package/dist/index.d.ts CHANGED
@@ -1,37 +1,37 @@
1
- export { Tensor } from './Tensor';
2
- export type { NestedArray, EinsumSpec } from './Tensor';
3
- export { Index, idx } from './named-index';
4
- export type { IndexOpts } from './named-index';
5
- export { tensorSvd, tensorSvdWasm } from './operations/svd';
6
- export type { TensorSvdOpts, TensorSvdResult } from './operations/svd';
7
- export { randomTensor } from './operations/random';
8
- export type { RandomTensorOpts } from './operations/random';
9
- export { contractNetwork } from './contraction-sequence';
10
- export type { ContractNetworkOpts, ContractNetworkResult } from './contraction-sequence';
11
- export { tensorQr } from './operations/qr';
12
- export type { TensorQrOpts, TensorQrResult } from './operations/qr';
13
- export { tensorLU } from './operations/lu';
14
- export type { TensorLUOpts, TensorLUResult } from './operations/lu';
15
- export { tensorCholesky } from './operations/cholesky';
16
- export type { TensorCholeskyOpts, TensorCholeskyResult } from './operations/cholesky';
17
- export { tensorEig, tensorEigWasm } from './operations/eig';
18
- export type { TensorEigOpts, TensorEigResult } from './operations/eig';
19
- export { tensorPinv } from './operations/pinv';
20
- export type { TensorPinvOpts } from './operations/pinv';
21
- export { tensorSolve } from './operations/solve';
22
- export type { TensorSolveOpts, TensorSolveResult } from './operations/solve';
23
- export { tensorKron } from './operations/kron';
24
- export type { TensorKronOpts } from './operations/kron';
25
- export { slice } from './operations/slice';
26
- export type { SliceRange } from './operations/slice';
27
- export { gather } from './operations/gather';
28
- export { stack } from './operations/stack';
29
- export type { StackOpts } from './operations/stack';
30
- export { concatenate } from './operations/concatenate';
31
- export { scatter } from './operations/scatter';
32
- export type { ScatterOpts } from './operations/scatter';
33
- export { pad } from './operations/pad';
34
- export type { PadOptions } from './operations/pad';
35
- export { roll } from './operations/roll';
36
- export { flip } from './operations/flip';
1
+ export { Tensor } from './Tensor.js';
2
+ export type { NestedArray, EinsumSpec } from './Tensor.js';
3
+ export { Index, idx } from './named-index.js';
4
+ export type { IndexOpts } from './named-index.js';
5
+ export { tensorSvd, tensorSvdWasm } from './operations/svd.js';
6
+ export type { TensorSvdOpts, TensorSvdResult } from './operations/svd.js';
7
+ export { randomTensor } from './operations/random.js';
8
+ export type { RandomTensorOpts } from './operations/random.js';
9
+ export { contractNetwork } from './contraction-sequence.js';
10
+ export type { ContractNetworkOpts, ContractNetworkResult } from './contraction-sequence.js';
11
+ export { tensorQr } from './operations/qr.js';
12
+ export type { TensorQrOpts, TensorQrResult } from './operations/qr.js';
13
+ export { tensorLU } from './operations/lu.js';
14
+ export type { TensorLUOpts, TensorLUResult } from './operations/lu.js';
15
+ export { tensorCholesky } from './operations/cholesky.js';
16
+ export type { TensorCholeskyOpts, TensorCholeskyResult } from './operations/cholesky.js';
17
+ export { tensorEig, tensorEigWasm } from './operations/eig.js';
18
+ export type { TensorEigOpts, TensorEigResult } from './operations/eig.js';
19
+ export { tensorPinv } from './operations/pinv.js';
20
+ export type { TensorPinvOpts } from './operations/pinv.js';
21
+ export { tensorSolve } from './operations/solve.js';
22
+ export type { TensorSolveOpts, TensorSolveResult } from './operations/solve.js';
23
+ export { tensorKron } from './operations/kron.js';
24
+ export type { TensorKronOpts } from './operations/kron.js';
25
+ export { slice } from './operations/slice.js';
26
+ export type { SliceRange } from './operations/slice.js';
27
+ export { gather } from './operations/gather.js';
28
+ export { stack } from './operations/stack.js';
29
+ export type { StackOpts } from './operations/stack.js';
30
+ export { concatenate } from './operations/concatenate.js';
31
+ export { scatter } from './operations/scatter.js';
32
+ export type { ScatterOpts } from './operations/scatter.js';
33
+ export { pad } from './operations/pad.js';
34
+ export type { PadOptions } from './operations/pad.js';
35
+ export { roll } from './operations/roll.js';
36
+ export { flip } from './operations/flip.js';
37
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMxD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGzF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;A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qBAAqB,CAAC;AAG1E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC"}
@@ -20,12 +20,14 @@
20
20
  * the trailing dims (for U).
21
21
  */
22
22
  import { Tensor } from '../Tensor.js';
23
+ /** Configures the factor type (lower or upper) and the joining index name for `tensorCholesky`. */
23
24
  export interface TensorCholeskyOpts {
24
25
  /** When true (default), return L such that A = L·Lᵀ. When false, return U such that A = Uᵀ·U. */
25
26
  lower?: boolean;
26
27
  /** Optional name for the joining index on the returned factor. Defaults to "cholesky". */
27
28
  joiningIndexName?: string;
28
29
  }
30
+ /** Contains the Cholesky factor of the tensor reshaped to a square matrix. */
29
31
  export interface TensorCholeskyResult {
30
32
  /** Cholesky factor (lower or upper depending on `opts.lower`). */
31
33
  L: Tensor;
@@ -1 +1 @@
1
- {"version":3,"file":"cholesky.d.ts","sourceRoot":"","sources":["../../src/operations/cholesky.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,MAAM,WAAW,kBAAkB;IACjC,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,CAAC,EAAE,MAAM,CAAC;CACX;AAeD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,kBAAkB,GACxB,oBAAoB,CAgFtB"}
1
+ {"version":3,"file":"cholesky.d.ts","sourceRoot":"","sources":["../../src/operations/cholesky.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,mGAAmG;AACnG,MAAM,WAAW,kBAAkB;IACjC,iGAAiG;IACjG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,8EAA8E;AAC9E,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,CAAC,EAAE,MAAM,CAAC;CACX;AAeD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,kBAAkB,GACxB,oBAAoB,CAgFtB"}
@@ -18,12 +18,14 @@
18
18
  * - `computeVectors: false` — only eigenvalues are returned (faster).
19
19
  */
20
20
  import { Tensor } from '../Tensor.js';
21
+ /** Configures the symmetry hint and eigenvector computation for `tensorEig`. */
21
22
  export interface TensorEigOpts {
22
23
  /** Hint that the input is symmetric; routes through a stable real-eigenvalue path. */
23
24
  symmetric?: boolean;
24
25
  /** When false, only eigenvalues are computed. Default true. */
25
26
  computeVectors?: boolean;
26
27
  }
28
+ /** Contains the eigenvalues and, when requested, the eigenvectors from `tensorEig`. */
27
29
  export interface TensorEigResult {
28
30
  /** Real parts of the eigenvalues. 1-D Tensor of length n. */
29
31
  eigenvalues: Tensor;
@@ -1 +1 @@
1
- {"version":3,"file":"eig.d.ts","sourceRoot":"","sources":["../../src/operations/eig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,WAAW,aAAa;IAC5B,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAuHD;;GAEG;AACH,wBAAgB,SAAS,CACvB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,eAAe,CAKjB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,eAAe,CAAC,CAK1B"}
1
+ {"version":3,"file":"eig.d.ts","sourceRoot":"","sources":["../../src/operations/eig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAuHD;;GAEG;AACH,wBAAgB,SAAS,CACvB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,eAAe,CAKjB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,eAAe,CAAC,CAK1B"}
@@ -20,6 +20,7 @@
20
20
  * collisions. When only one tensor has labels, the output carries no labels.
21
21
  */
22
22
  import { Tensor } from '../Tensor.js';
23
+ /** Configures the separator for the axis-label names of `tensorKron` output. */
23
24
  export interface TensorKronOpts {
24
25
  /**
25
26
  * Separator string inserted between a's and b's axis-label names when
@@ -1 +1 @@
1
- {"version":3,"file":"kron.d.ts","sourceRoot":"","sources":["../../src/operations/kron.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,MAAM,CA4G9E"}
1
+ {"version":3,"file":"kron.d.ts","sourceRoot":"","sources":["../../src/operations/kron.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,MAAM,CA4G9E"}
@@ -18,6 +18,7 @@
18
18
  * dims.
19
19
  */
20
20
  import { Tensor } from '../Tensor.js';
21
+ /** Contains the L and U factors, the row permutation, and its parity from `tensorLU`. */
21
22
  export interface TensorLUResult {
22
23
  /** Unit lower-triangular L. Shape [...rowDims, n]. */
23
24
  L: Tensor;
@@ -28,6 +29,7 @@ export interface TensorLUResult {
28
29
  /** Sign of the permutation (+1 for even, -1 for odd) — useful for det(). */
29
30
  parity: 1 | -1;
30
31
  }
32
+ /** Configures the joining index name between the L and U factors of `tensorLU`. */
31
33
  export interface TensorLUOpts {
32
34
  /** Optional name for the joining index between L and U. Defaults to "lu". */
33
35
  joiningIndexName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"lu.d.ts","sourceRoot":"","sources":["../../src/operations/lu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,CAAC,EAAE,MAAM,CAAC;IACV,iDAAiD;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,2FAA2F;IAC3F,CAAC,EAAE,UAAU,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,YAAY,GAClB,cAAc,CA6FhB"}
1
+ {"version":3,"file":"lu.d.ts","sourceRoot":"","sources":["../../src/operations/lu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAKtC,yFAAyF;AACzF,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,CAAC,EAAE,MAAM,CAAC;IACV,iDAAiD;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,2FAA2F;IAC3F,CAAC,EAAE,UAAU,CAAC;IACd,4EAA4E;IAC5E,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAChB;AAED,mFAAmF;AACnF,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,YAAY,GAClB,cAAc,CA6FhB"}
@@ -14,6 +14,7 @@
14
14
  * from the input are preserved unchanged in the output.
15
15
  */
16
16
  import { Tensor } from '../Tensor.js';
17
+ /** Configures the padding mode and the constant fill value for `pad`. */
17
18
  export interface PadOptions {
18
19
  /**
19
20
  * Padding mode.
@@ -1 +1 @@
1
- {"version":3,"file":"pad.d.ts","sourceRoot":"","sources":["../../src/operations/pad.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,GAAG,CACjB,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,EACjD,IAAI,CAAC,EAAE,UAAU,GAChB,MAAM,CA6GR"}
1
+ {"version":3,"file":"pad.d.ts","sourceRoot":"","sources":["../../src/operations/pad.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,yEAAyE;AACzE,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,GAAG,CACjB,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,EACjD,IAAI,CAAC,EAAE,UAAU,GAChB,MAAM,CA6GR"}
@@ -17,6 +17,7 @@
17
17
  */
18
18
  import { Tensor } from '../Tensor.js';
19
19
  import { Index } from '../named-index.js';
20
+ /** Configures the relative singular-value threshold for `tensorPinv`. */
20
21
  export interface TensorPinvOpts {
21
22
  /**
22
23
  * Relative condition threshold for singular-value truncation.
@@ -1 +1 @@
1
- {"version":3,"file":"pinv.d.ts","sourceRoot":"","sources":["../../src/operations/pinv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,EACtC,IAAI,CAAC,EAAE,cAAc,GACpB,MAAM,CAiGR"}
1
+ {"version":3,"file":"pinv.d.ts","sourceRoot":"","sources":["../../src/operations/pinv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,yEAAyE;AACzE,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,EACtC,IAAI,CAAC,EAAE,cAAc,GACpB,MAAM,CAiGR"}
@@ -20,6 +20,7 @@
20
20
  * full mode) is inserted between them.
21
21
  */
22
22
  import { Tensor } from '../Tensor.js';
23
+ /** Configures the QR mode (reduced or full) and the joining index name for `tensorQr`. */
23
24
  export interface TensorQrOpts {
24
25
  /** 'reduced' (default, thin QR) or 'full'. */
25
26
  mode?: 'reduced' | 'full';
@@ -30,6 +31,7 @@ export interface TensorQrOpts {
30
31
  */
31
32
  joiningIndexName?: string;
32
33
  }
34
+ /** Contains the Q and R factors from `tensorQr`. */
33
35
  export interface TensorQrResult {
34
36
  /** Q factor with orthonormal columns reshaped to [...rowDims, k]. */
35
37
  Q: Tensor;
@@ -1 +1 @@
1
- {"version":3,"file":"qr.d.ts","sourceRoot":"","sources":["../../src/operations/qr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,CAAC,EAAE,MAAM,CAAC;IACV,+DAA+D;IAC/D,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,YAAY,GAClB,cAAc,CAwEhB"}
1
+ {"version":3,"file":"qr.d.ts","sourceRoot":"","sources":["../../src/operations/qr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,CAAC,EAAE,MAAM,CAAC;IACV,+DAA+D;IAC/D,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,YAAY,GAClB,cAAc,CAwEhB"}
@@ -15,6 +15,7 @@
15
15
  */
16
16
  import { Tensor } from '../Tensor.js';
17
17
  import { Index } from '../named-index.js';
18
+ /** Configures the distribution, the seed, and the axis labels for `randomTensor`. */
18
19
  export interface RandomTensorOpts {
19
20
  /**
20
21
  * Distribution to sample from.
@@ -1 +1 @@
1
- {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/operations/random.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;IAEnD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CACnC;AAqED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAuE1F"}
1
+ {"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/operations/random.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;IAEnD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;CACnC;AAqED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAuE1F"}
@@ -17,6 +17,7 @@
17
17
  * are preserved unchanged.
18
18
  */
19
19
  import { Tensor } from '../Tensor.js';
20
+ /** Configures how `scatter` combines updates with the existing values. */
20
21
  export interface ScatterOpts {
21
22
  /**
22
23
  * How to combine `updates` with existing values at the target positions.
@@ -1 +1 @@
1
- {"version":3,"file":"scatter.d.ts","sourceRoot":"","sources":["../../src/operations/scatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,WAAW,GACjB,MAAM,CAsFR"}
1
+ {"version":3,"file":"scatter.d.ts","sourceRoot":"","sources":["../../src/operations/scatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,OAAO,CACrB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,WAAW,GACjB,MAAM,CAsFR"}
@@ -14,6 +14,7 @@
14
14
  * dimension is part of the index identity).
15
15
  */
16
16
  import { Tensor } from '../Tensor.js';
17
+ /** Defines the start, stop, and step of a slice along one axis. */
17
18
  export interface SliceRange {
18
19
  /** Default 0. Supports negative indexing: -1 means shape[axis]-1. */
19
20
  start?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/operations/slice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CA0EtE"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../src/operations/slice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,mEAAmE;AACnE,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CA0EtE"}
@@ -27,6 +27,7 @@
27
27
  */
28
28
  import { Tensor } from '../Tensor.js';
29
29
  import { Index } from '../named-index.js';
30
+ /** Configures the row (contracting) axes of A and b for `tensorSolve`. */
30
31
  export interface TensorSolveOpts {
31
32
  /**
32
33
  * Axis indices (integers) or Index objects of A that form the "contracting"
@@ -39,6 +40,7 @@ export interface TensorSolveOpts {
39
40
  */
40
41
  rowAxesB?: ReadonlyArray<number | Index>;
41
42
  }
43
+ /** Contains the solution tensor x from `tensorSolve`. */
42
44
  export interface TensorSolveResult {
43
45
  /** Solution tensor x satisfying A·x ≈ b. */
44
46
  x: Tensor;
@@ -1 +1 @@
1
- {"version":3,"file":"solve.d.ts","sourceRoot":"","sources":["../../src/operations/solve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;CACX;AAoED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,iBAAiB,CA8J3F"}
1
+ {"version":3,"file":"solve.d.ts","sourceRoot":"","sources":["../../src/operations/solve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,0EAA0E;AAC1E,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;CACX;AAoED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,iBAAiB,CA8J3F"}
@@ -16,6 +16,7 @@
16
16
  */
17
17
  import { Tensor } from '../Tensor.js';
18
18
  import { Index } from '../named-index.js';
19
+ /** Configures the label of the new axis that `stack` inserts. */
19
20
  export interface StackOpts {
20
21
  /**
21
22
  * Optional label for the newly created axis. If omitted, the new axis
@@ -1 +1 @@
1
- {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/operations/stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAuF/E"}
1
+ {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../src/operations/stack.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,iEAAiE;AACjE,MAAM,WAAW,SAAS;IACxB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAuF/E"}
@@ -15,6 +15,7 @@
15
15
  * no `axisLabels`.
16
16
  */
17
17
  import { Tensor } from '../Tensor.js';
18
+ /** Configures the truncation (maximum dimension and cutoff) for `tensorSvd`. */
18
19
  export interface TensorSvdOpts {
19
20
  /** If set, keep at most `maxdim` singular values. */
20
21
  maxdim?: number;
@@ -30,6 +31,7 @@ export interface TensorSvdOpts {
30
31
  */
31
32
  joiningIndexName?: string;
32
33
  }
34
+ /** Contains the U, S, and V factors and the truncation data from `tensorSvd`. */
33
35
  export interface TensorSvdResult {
34
36
  /** U factor reshaped to [...rowDims, k]. */
35
37
  U: Tensor;
@@ -44,6 +46,16 @@ export interface TensorSvdResult {
44
46
  }
45
47
  /**
46
48
  * Truncated tensor SVD using the pure-JS DenseMatrix SVD primitive (synchronous).
49
+ *
50
+ * Compute the (optionally truncated) SVD of tensor `t` by partitioning its
51
+ * axes into "row" and "col" groups.
52
+ *
53
+ * @param t - Input tensor of rank ≥ 2 (U and V each need at least one axis).
54
+ * @param rowAxes - Axis indices (integers) whose dimensions form the row
55
+ * dimension of the effective 2-D matrix. The remaining axes
56
+ * form the column dimension. The order of `rowAxes` controls
57
+ * the layout of the U output tensor.
58
+ * @param opts - Optional truncation / naming settings.
47
59
  */
48
60
  export declare function tensorSvd(t: Tensor, rowAxes: ReadonlyArray<number>, opts?: TensorSvdOpts): TensorSvdResult;
49
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"svd.d.ts","sourceRoot":"","sources":["../../src/operations/svd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,uDAAuD;IACvD,CAAC,EAAE,MAAM,CAAC;IACV,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,oGAAoG;IACpG,eAAe,EAAE,MAAM,CAAC;CACzB;AAkID;;GAEG;AACH,wBAAgB,SAAS,CACvB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,eAAe,CAGjB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,eAAe,CAAC,CAG1B"}
1
+ {"version":3,"file":"svd.d.ts","sourceRoot":"","sources":["../../src/operations/svd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,uDAAuD;IACvD,CAAC,EAAE,MAAM,CAAC;IACV,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC;IACV,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,oGAAoG;IACpG,eAAe,EAAE,MAAM,CAAC;CACzB;AAwHD;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CACvB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,eAAe,CAGjB;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CACjC,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,eAAe,CAAC,CAG1B"}
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@danielsimonjr/mathts-tensor",
3
- "version": "0.2.20",
4
- "description": "Rank-N dense Tensor type for MathTS with Float64Array-backed storage",
5
- "author": "Daniel Simon Jr.",
6
- "license": "MIT",
7
- "type": "module",
8
- "main": "./dist/index.js",
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
15
- }
16
- },
17
- "files": [
18
- "dist",
19
- "README.md"
20
- ],
21
- "scripts": {
22
- "build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
23
- "dev": "tsup src/index.ts --format esm --dts --watch",
24
- "test": "bun test --isolate --timeout 30000",
25
- "test:watch": "vitest",
26
- "test:coverage": "bun test --isolate --timeout 30000 --coverage",
27
- "typecheck": "tsc --noEmit",
28
- "lint": "oxlint src",
29
- "lint:fix": "oxlint src --fix",
30
- "clean": "rm -rf dist",
31
- "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
- },
33
- "dependencies": {
34
- "@danielsimonjr/mathts-core": "^0.15.0",
35
- "@danielsimonjr/mathts-matrix": "^0.7.2"
36
- },
37
- "devDependencies": {
38
- "@types/node": "^26.4.0",
39
- "tsup": "^8.0.0",
40
- "typescript": "^7.0.2",
41
- "vitest": "^5.0.0"
42
- },
43
- "publishConfig": {
44
- "access": "public"
45
- },
46
- "repository": {
47
- "type": "git",
48
- "url": "git+https://github.com/danielsimonjr/MathTS.git",
49
- "directory": "tensor"
50
- },
51
- "keywords": [
52
- "math",
53
- "tensor",
54
- "linear-algebra",
55
- "typescript"
56
- ]
57
- }
1
+ {
2
+ "name": "@danielsimonjr/mathts-tensor",
3
+ "version": "0.2.21",
4
+ "description": "Rank-N dense Tensor type for MathTS with Float64Array-backed storage",
5
+ "author": "Daniel Simon Jr.",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
23
+ "dev": "tsup src/index.ts --format esm --dts --watch",
24
+ "test": "bun test --isolate --timeout 30000",
25
+ "test:watch": "vitest",
26
+ "test:coverage": "bun test --isolate --timeout 30000 --coverage",
27
+ "typecheck": "tsc --noEmit",
28
+ "lint": "oxlint src",
29
+ "lint:fix": "oxlint src --fix",
30
+ "clean": "rm -rf dist",
31
+ "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
+ },
33
+ "dependencies": {
34
+ "@danielsimonjr/mathts-core": "^0.15.4",
35
+ "@danielsimonjr/mathts-matrix": "^0.7.4"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^26.4.0",
39
+ "tsup": "^8.0.0",
40
+ "typescript": "^7.0.2",
41
+ "vitest": "^5.0.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/danielsimonjr/MathTS.git",
49
+ "directory": "tensor"
50
+ },
51
+ "keywords": [
52
+ "math",
53
+ "tensor",
54
+ "linear-algebra",
55
+ "typescript"
56
+ ]
57
+ }