numbl 0.4.11 → 0.4.12

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.
@@ -1,2 +1,2 @@
1
1
  /** Numbl version, used for JIT disk cache invalidation. */
2
- export declare const NUMBL_VERSION = "0.4.11";
2
+ export declare const NUMBL_VERSION = "0.4.12";
package/dist-cli/cli.js CHANGED
@@ -23069,7 +23069,7 @@ function indexIntoTensorWithTensor(base, idx) {
23069
23069
  if (hasImag) imIndices.push(base.imag[k]);
23070
23070
  }
23071
23071
  const idxIs0x0 = idx.data.length === 0 && idx.shape.length === 2 && idx.shape[0] === 0 && idx.shape[1] === 0;
23072
- const baseIsVector = base.shape.length <= 2 && (base.shape[0] === 1 || base.shape[1] === 1 || base.shape.length === 1);
23072
+ const baseIsVector = base.data.length !== 1 && base.shape.length <= 2 && (base.shape[0] === 1 || base.shape[1] === 1 || base.shape.length === 1);
23073
23073
  const idxIsVector = idx.shape.length <= 2 && (idx.shape[0] === 1 || idx.shape[1] === 1 || idx.shape.length === 1);
23074
23074
  const outShape = idxIs0x0 ? [0, 0] : baseIsVector && idxIsVector ? base.shape[0] === 1 ? [1, resultData.length] : [resultData.length, 1] : idx.shape;
23075
23075
  const imOut = hasImag && imIndices.some((x) => x !== 0) ? allocFloat64Array(imIndices) : void 0;
@@ -64075,7 +64075,7 @@ function getSourceLine(getSource, file, line) {
64075
64075
  }
64076
64076
 
64077
64077
  // src/numbl-core/version.ts
64078
- var NUMBL_VERSION = "0.4.11";
64078
+ var NUMBL_VERSION = "0.4.12";
64079
64079
 
64080
64080
  // src/cli-repl.ts
64081
64081
  import { createInterface } from "readline";
package/dist-lib/lib.js CHANGED
@@ -24984,7 +24984,7 @@ function indexIntoTensorWithTensor(base, idx) {
24984
24984
  if (hasImag) imIndices.push(base.imag[k]);
24985
24985
  }
24986
24986
  const idxIs0x0 = idx.data.length === 0 && idx.shape.length === 2 && idx.shape[0] === 0 && idx.shape[1] === 0;
24987
- const baseIsVector = base.shape.length <= 2 && (base.shape[0] === 1 || base.shape[1] === 1 || base.shape.length === 1);
24987
+ const baseIsVector = base.data.length !== 1 && base.shape.length <= 2 && (base.shape[0] === 1 || base.shape[1] === 1 || base.shape.length === 1);
24988
24988
  const idxIsVector = idx.shape.length <= 2 && (idx.shape[0] === 1 || idx.shape[1] === 1 || idx.shape.length === 1);
24989
24989
  const outShape = idxIs0x0 ? [0, 0] : baseIsVector && idxIsVector ? base.shape[0] === 1 ? [1, resultData.length] : [resultData.length, 1] : idx.shape;
24990
24990
  const imOut = hasImag && imIndices.some((x) => x !== 0) ? allocFloat64Array(imIndices) : void 0;
@@ -1,2 +1,2 @@
1
1
  /** Numbl version, used for JIT disk cache invalidation. */
2
- export declare const NUMBL_VERSION = "0.4.11";
2
+ export declare const NUMBL_VERSION = "0.4.12";