numpy-ts 1.0.0 → 1.2.0
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 +4 -3
- package/dist/esm/common/broadcasting.js +1 -1
- package/dist/esm/common/dtype.js +1 -1
- package/dist/esm/common/float16-conv.js +1 -0
- package/dist/esm/common/internal/compute.js +1 -1
- package/dist/esm/common/internal/indexing.js +1 -1
- package/dist/esm/common/ndarray-core.js +1 -1
- package/dist/esm/common/ops/advanced.js +1 -1
- package/dist/esm/common/ops/arithmetic.js +1 -1
- package/dist/esm/common/ops/bitwise.js +1 -1
- package/dist/esm/common/ops/comparison.js +1 -1
- package/dist/esm/common/ops/complex.js +1 -1
- package/dist/esm/common/ops/exponential.js +1 -1
- package/dist/esm/common/ops/fft.js +1 -1
- package/dist/esm/common/ops/formatting.js +1 -1
- package/dist/esm/common/ops/gradient.js +1 -1
- package/dist/esm/common/ops/hyperbolic.js +1 -1
- package/dist/esm/common/ops/linalg.js +2 -2
- package/dist/esm/common/ops/logic.js +1 -1
- package/dist/esm/common/ops/random.js +1 -1
- package/dist/esm/common/ops/reduction.js +1 -1
- package/dist/esm/common/ops/rounding.js +1 -1
- package/dist/esm/common/ops/sets.js +1 -1
- package/dist/esm/common/ops/shape.js +1 -1
- package/dist/esm/common/ops/sorting.js +1 -1
- package/dist/esm/common/ops/statistics.js +1 -1
- package/dist/esm/common/ops/trig.js +1 -1
- package/dist/esm/common/storage.js +1 -1
- package/dist/esm/common/wasm/abs.js +1 -0
- package/dist/esm/common/wasm/add.js +1 -0
- package/dist/esm/common/wasm/arccos.js +1 -0
- package/dist/esm/common/wasm/arcsin.js +1 -0
- package/dist/esm/common/wasm/arctan.js +1 -0
- package/dist/esm/common/wasm/argpartition.js +1 -0
- package/dist/esm/common/wasm/argsort.js +1 -0
- package/dist/esm/common/wasm/bins/abs.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/add.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/arccos.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/arcsin.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/arctan.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/argpartition.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/argsort.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/bitwise_and.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/bitwise_count.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/bitwise_not.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/bitwise_or.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/bitwise_xor.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/cholesky.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/clip.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/convolve.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/copysign.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/correlate.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/cos.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/cosh.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/cross.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/diff.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/divide.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/dot.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/exp.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/exp2.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/fft.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/flip.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/frexp.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/gather.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/gcd.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/gradient.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/heaviside.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/hypot.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/indices.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/inner.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/kron.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/ldexp.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/left_shift.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/lexsort.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/logaddexp.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/logical_and.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/logical_not.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/logical_or.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/logical_xor.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/matmul.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/matvec.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/max.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/min.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/mul.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/neg.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/outer.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/pad.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/partition.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/power.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/qr.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reciprocal.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_all.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_any.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_argmax.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_argmin.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_count_nz.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_max.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_mean.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_min.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_nanmax.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_nanmin.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_nansum.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_prod.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_quantile.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_std.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_sum.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/reduce_var.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/repeat.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/right_shift.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/rng.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/roll.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/rot90.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/searchsorted.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/sign.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/sinh.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/sort.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/sqrt.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/square.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/sub.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/svd.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/tan.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/tanh.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/tile.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/vdot.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/vecdot.wasm.js +1 -0
- package/dist/esm/common/wasm/bins/vecmat.wasm.js +1 -0
- package/dist/esm/common/wasm/bitwise_and.js +1 -0
- package/dist/esm/common/wasm/bitwise_count.js +1 -0
- package/dist/esm/common/wasm/bitwise_not.js +1 -0
- package/dist/esm/common/wasm/bitwise_or.js +1 -0
- package/dist/esm/common/wasm/bitwise_xor.js +1 -0
- package/dist/esm/common/wasm/cholesky.js +1 -0
- package/dist/esm/common/wasm/clip.js +1 -0
- package/dist/esm/common/wasm/config.js +1 -0
- package/dist/esm/common/wasm/convolve.js +1 -0
- package/dist/esm/common/wasm/copysign.js +1 -0
- package/dist/esm/common/wasm/correlate.js +1 -0
- package/dist/esm/common/wasm/cos.js +1 -0
- package/dist/esm/common/wasm/cosh.js +1 -0
- package/dist/esm/common/wasm/cross.js +1 -0
- package/dist/esm/common/wasm/diff.js +1 -0
- package/dist/esm/common/wasm/divide.js +1 -0
- package/dist/esm/common/wasm/dot.js +1 -0
- package/dist/esm/common/wasm/exp.js +1 -0
- package/dist/esm/common/wasm/exp2.js +1 -0
- package/dist/esm/common/wasm/fft.js +1 -0
- package/dist/esm/common/wasm/flip.js +1 -0
- package/dist/esm/common/wasm/frexp.js +1 -0
- package/dist/esm/common/wasm/gather.js +1 -0
- package/dist/esm/common/wasm/gcd.js +1 -0
- package/dist/esm/common/wasm/gradient.js +1 -0
- package/dist/esm/common/wasm/heaviside.js +1 -0
- package/dist/esm/common/wasm/hypot.js +1 -0
- package/dist/esm/common/wasm/indices.js +1 -0
- package/dist/esm/common/wasm/inner.js +1 -0
- package/dist/esm/common/wasm/kron.js +1 -0
- package/dist/esm/common/wasm/ldexp.js +1 -0
- package/dist/esm/common/wasm/left_shift.js +1 -0
- package/dist/esm/common/wasm/lexsort.js +1 -0
- package/dist/esm/common/wasm/logaddexp.js +1 -0
- package/dist/esm/common/wasm/logical_and.js +1 -0
- package/dist/esm/common/wasm/logical_not.js +1 -0
- package/dist/esm/common/wasm/logical_or.js +1 -0
- package/dist/esm/common/wasm/logical_xor.js +1 -0
- package/dist/esm/common/wasm/matmul.js +1 -0
- package/dist/esm/common/wasm/matvec.js +1 -0
- package/dist/esm/common/wasm/max.js +1 -0
- package/dist/esm/common/wasm/min.js +1 -0
- package/dist/esm/common/wasm/mul.js +1 -0
- package/dist/esm/common/wasm/neg.js +1 -0
- package/dist/esm/common/wasm/outer.js +1 -0
- package/dist/esm/common/wasm/pad.js +1 -0
- package/dist/esm/common/wasm/partition.js +1 -0
- package/dist/esm/common/wasm/power.js +1 -0
- package/dist/esm/common/wasm/qr.js +1 -0
- package/dist/esm/common/wasm/reciprocal.js +1 -0
- package/dist/esm/common/wasm/reduce_all.js +1 -0
- package/dist/esm/common/wasm/reduce_any.js +1 -0
- package/dist/esm/common/wasm/reduce_argmax.js +1 -0
- package/dist/esm/common/wasm/reduce_argmin.js +1 -0
- package/dist/esm/common/wasm/reduce_count_nz.js +1 -0
- package/dist/esm/common/wasm/reduce_max.js +1 -0
- package/dist/esm/common/wasm/reduce_mean.js +1 -0
- package/dist/esm/common/wasm/reduce_min.js +1 -0
- package/dist/esm/common/wasm/reduce_nanmax.js +1 -0
- package/dist/esm/common/wasm/reduce_nanmin.js +1 -0
- package/dist/esm/common/wasm/reduce_nansum.js +1 -0
- package/dist/esm/common/wasm/reduce_prod.js +1 -0
- package/dist/esm/common/wasm/reduce_quantile.js +1 -0
- package/dist/esm/common/wasm/reduce_std.js +1 -0
- package/dist/esm/common/wasm/reduce_sum.js +1 -0
- package/dist/esm/common/wasm/reduce_var.js +1 -0
- package/dist/esm/common/wasm/repeat.js +1 -0
- package/dist/esm/common/wasm/right_shift.js +1 -0
- package/dist/esm/common/wasm/rng.js +1 -0
- package/dist/esm/common/wasm/roll.js +1 -0
- package/dist/esm/common/wasm/rot90.js +1 -0
- package/dist/esm/common/wasm/runtime.js +1 -0
- package/dist/esm/common/wasm/searchsorted.js +1 -0
- package/dist/esm/common/wasm/sign.js +1 -0
- package/dist/esm/common/wasm/sinh.js +1 -0
- package/dist/esm/common/wasm/sort.js +1 -0
- package/dist/esm/common/wasm/sqrt.js +1 -0
- package/dist/esm/common/wasm/square.js +1 -0
- package/dist/esm/common/wasm/sub.js +1 -0
- package/dist/esm/common/wasm/svd.js +1 -0
- package/dist/esm/common/wasm/tan.js +1 -0
- package/dist/esm/common/wasm/tanh.js +1 -0
- package/dist/esm/common/wasm/tile.js +1 -0
- package/dist/esm/common/wasm/vdot.js +1 -0
- package/dist/esm/common/wasm/vecdot.js +1 -0
- package/dist/esm/common/wasm/vecmat.js +1 -0
- package/dist/esm/core/advanced.js +1 -1
- package/dist/esm/core/arithmetic.js +1 -1
- package/dist/esm/core/bitwise.js +1 -1
- package/dist/esm/core/complex.js +1 -1
- package/dist/esm/core/creation.js +1 -1
- package/dist/esm/core/formatting.js +1 -1
- package/dist/esm/core/gradient.js +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/linalg.js +1 -1
- package/dist/esm/core/logic.js +1 -1
- package/dist/esm/core/polynomial.js +1 -1
- package/dist/esm/core/reduction.js +1 -1
- package/dist/esm/core/rounding.js +1 -1
- package/dist/esm/core/sets.js +1 -1
- package/dist/esm/core/shape-extra.js +1 -1
- package/dist/esm/core/shape.js +1 -1
- package/dist/esm/core/sorting.js +1 -1
- package/dist/esm/core/statistics.js +1 -1
- package/dist/esm/core/trig.js +1 -1
- package/dist/esm/core/typechecking.js +1 -1
- package/dist/esm/core/types.js +1 -1
- package/dist/esm/core/utility.js +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/full/index.js +1 -1
- package/dist/esm/full/ndarray.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/io/file-ops.js +1 -0
- package/dist/esm/io/filesystem.js +1 -0
- package/dist/esm/io/index.js +1 -1
- package/dist/esm/io/npy/format.js +1 -1
- package/dist/esm/io/npy/index.js +1 -1
- package/dist/esm/io/npy/parser.js +1 -1
- package/dist/esm/io/npy/serializer.js +2 -2
- package/dist/esm/io/npz/index.js +1 -1
- package/dist/esm/io/npz/parser.js +1 -1
- package/dist/esm/io/npz/serializer.js +1 -1
- package/dist/esm/io/txt/index.js +1 -1
- package/dist/esm/io/txt/parser.js +1 -1
- package/dist/esm/io/zip/index.js +1 -1
- package/dist/esm/io/zip/reader.js +1 -1
- package/dist/esm/io/zip/types.js +1 -1
- package/dist/esm/io/zip/writer.js +1 -1
- package/dist/esm/node.js +1 -1
- package/dist/numpy-ts.browser.js +6 -6
- package/dist/types/common/dtype.d.ts +9 -4
- package/dist/types/common/float16-conv.d.ts +27 -0
- package/dist/types/common/internal/indexing.d.ts +15 -18
- package/dist/types/common/ndarray-core.d.ts +3 -13
- package/dist/types/common/ops/linalg.d.ts +13 -12
- package/dist/types/common/ops/random.d.ts +10 -5
- package/dist/types/common/ops/sets.d.ts +1 -1
- package/dist/types/common/ops/shape.d.ts +11 -0
- package/dist/types/common/storage.d.ts +4 -0
- package/dist/types/common/wasm/abs.d.ts +14 -0
- package/dist/types/common/wasm/add.d.ts +19 -0
- package/dist/types/common/wasm/arccos.d.ts +15 -0
- package/dist/types/common/wasm/arcsin.d.ts +15 -0
- package/dist/types/common/wasm/arctan.d.ts +15 -0
- package/dist/types/common/wasm/argpartition.d.ts +18 -0
- package/dist/types/common/wasm/argsort.d.ts +18 -0
- package/dist/types/common/wasm/bins/abs.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/add.wasm.d.ts +17 -0
- package/dist/types/common/wasm/bins/arccos.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/arcsin.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/arctan.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/argpartition.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/argsort.wasm.d.ts +25 -0
- package/dist/types/common/wasm/bins/bitwise_and.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/bitwise_count.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/bitwise_not.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/bitwise_or.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/bitwise_xor.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/cholesky.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/clip.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/convolve.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/copysign.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/correlate.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/cos.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/cosh.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/cross.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/diff.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/divide.wasm.d.ts +23 -0
- package/dist/types/common/wasm/bins/dot.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/exp.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/exp2.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/fft.wasm.d.ts +22 -0
- package/dist/types/common/wasm/bins/flip.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/frexp.wasm.d.ts +2 -0
- package/dist/types/common/wasm/bins/gather.wasm.d.ts +32 -0
- package/dist/types/common/wasm/bins/gcd.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/gradient.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/heaviside.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/hypot.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/indices.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/inner.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/kron.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/ldexp.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/left_shift.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/lexsort.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/logaddexp.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/logical_and.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/logical_not.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/logical_or.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/logical_xor.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/matmul.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/matvec.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/max.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/min.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/mul.wasm.d.ts +17 -0
- package/dist/types/common/wasm/bins/neg.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/outer.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/pad.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/partition.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/power.wasm.d.ts +13 -0
- package/dist/types/common/wasm/bins/qr.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/reciprocal.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/reduce_all.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/reduce_any.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/reduce_argmax.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/reduce_argmin.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/reduce_count_nz.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/reduce_max.wasm.d.ts +20 -0
- package/dist/types/common/wasm/bins/reduce_mean.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/reduce_min.wasm.d.ts +20 -0
- package/dist/types/common/wasm/bins/reduce_nanmax.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/reduce_nanmin.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/reduce_nansum.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/reduce_prod.wasm.d.ts +19 -0
- package/dist/types/common/wasm/bins/reduce_quantile.wasm.d.ts +2 -0
- package/dist/types/common/wasm/bins/reduce_std.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/reduce_sum.wasm.d.ts +17 -0
- package/dist/types/common/wasm/bins/reduce_var.wasm.d.ts +11 -0
- package/dist/types/common/wasm/bins/repeat.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/right_shift.wasm.d.ts +17 -0
- package/dist/types/common/wasm/bins/rng.wasm.d.ts +60 -0
- package/dist/types/common/wasm/bins/roll.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/rot90.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/searchsorted.wasm.d.ts +21 -0
- package/dist/types/common/wasm/bins/sign.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/sinh.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/sort.wasm.d.ts +27 -0
- package/dist/types/common/wasm/bins/sqrt.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/square.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/sub.wasm.d.ts +17 -0
- package/dist/types/common/wasm/bins/svd.wasm.d.ts +2 -0
- package/dist/types/common/wasm/bins/tan.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/tanh.wasm.d.ts +5 -0
- package/dist/types/common/wasm/bins/tile.wasm.d.ts +7 -0
- package/dist/types/common/wasm/bins/vdot.wasm.d.ts +3 -0
- package/dist/types/common/wasm/bins/vecdot.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bins/vecmat.wasm.d.ts +9 -0
- package/dist/types/common/wasm/bitwise_and.d.ts +9 -0
- package/dist/types/common/wasm/bitwise_count.d.ts +11 -0
- package/dist/types/common/wasm/bitwise_not.d.ts +9 -0
- package/dist/types/common/wasm/bitwise_or.d.ts +9 -0
- package/dist/types/common/wasm/bitwise_xor.d.ts +9 -0
- package/dist/types/common/wasm/cholesky.d.ts +20 -0
- package/dist/types/common/wasm/clip.d.ts +13 -0
- package/dist/types/common/wasm/config.d.ts +21 -0
- package/dist/types/common/wasm/convolve.d.ts +14 -0
- package/dist/types/common/wasm/copysign.d.ts +19 -0
- package/dist/types/common/wasm/correlate.d.ts +14 -0
- package/dist/types/common/wasm/cos.d.ts +15 -0
- package/dist/types/common/wasm/cosh.d.ts +15 -0
- package/dist/types/common/wasm/cross.d.ts +15 -0
- package/dist/types/common/wasm/diff.d.ts +15 -0
- package/dist/types/common/wasm/divide.d.ts +11 -0
- package/dist/types/common/wasm/dot.d.ts +14 -0
- package/dist/types/common/wasm/exp.d.ts +15 -0
- package/dist/types/common/wasm/exp2.d.ts +15 -0
- package/dist/types/common/wasm/fft.d.ts +65 -0
- package/dist/types/common/wasm/flip.d.ts +13 -0
- package/dist/types/common/wasm/frexp.d.ts +9 -0
- package/dist/types/common/wasm/gather.d.ts +23 -0
- package/dist/types/common/wasm/gcd.d.ts +11 -0
- package/dist/types/common/wasm/gradient.d.ts +13 -0
- package/dist/types/common/wasm/heaviside.d.ts +11 -0
- package/dist/types/common/wasm/hypot.d.ts +21 -0
- package/dist/types/common/wasm/indices.d.ts +10 -0
- package/dist/types/common/wasm/inner.d.ts +20 -0
- package/dist/types/common/wasm/kron.d.ts +13 -0
- package/dist/types/common/wasm/ldexp.d.ts +9 -0
- package/dist/types/common/wasm/left_shift.d.ts +11 -0
- package/dist/types/common/wasm/lexsort.d.ts +14 -0
- package/dist/types/common/wasm/logaddexp.d.ts +21 -0
- package/dist/types/common/wasm/logical_and.d.ts +19 -0
- package/dist/types/common/wasm/logical_not.d.ts +13 -0
- package/dist/types/common/wasm/logical_or.d.ts +19 -0
- package/dist/types/common/wasm/logical_xor.d.ts +19 -0
- package/dist/types/common/wasm/matmul.d.ts +18 -0
- package/dist/types/common/wasm/matvec.d.ts +13 -0
- package/dist/types/common/wasm/max.d.ts +11 -0
- package/dist/types/common/wasm/min.d.ts +11 -0
- package/dist/types/common/wasm/mul.d.ts +19 -0
- package/dist/types/common/wasm/neg.d.ts +13 -0
- package/dist/types/common/wasm/outer.d.ts +13 -0
- package/dist/types/common/wasm/pad.d.ts +14 -0
- package/dist/types/common/wasm/partition.d.ts +20 -0
- package/dist/types/common/wasm/power.d.ts +19 -0
- package/dist/types/common/wasm/qr.d.ts +17 -0
- package/dist/types/common/wasm/reciprocal.d.ts +9 -0
- package/dist/types/common/wasm/reduce_all.d.ts +14 -0
- package/dist/types/common/wasm/reduce_any.d.ts +14 -0
- package/dist/types/common/wasm/reduce_argmax.d.ts +14 -0
- package/dist/types/common/wasm/reduce_argmin.d.ts +14 -0
- package/dist/types/common/wasm/reduce_count_nz.d.ts +14 -0
- package/dist/types/common/wasm/reduce_max.d.ts +19 -0
- package/dist/types/common/wasm/reduce_mean.d.ts +19 -0
- package/dist/types/common/wasm/reduce_min.d.ts +19 -0
- package/dist/types/common/wasm/reduce_nanmax.d.ts +14 -0
- package/dist/types/common/wasm/reduce_nanmin.d.ts +14 -0
- package/dist/types/common/wasm/reduce_nansum.d.ts +14 -0
- package/dist/types/common/wasm/reduce_prod.d.ts +20 -0
- package/dist/types/common/wasm/reduce_quantile.d.ts +15 -0
- package/dist/types/common/wasm/reduce_std.d.ts +14 -0
- package/dist/types/common/wasm/reduce_sum.d.ts +20 -0
- package/dist/types/common/wasm/reduce_var.d.ts +14 -0
- package/dist/types/common/wasm/repeat.d.ts +14 -0
- package/dist/types/common/wasm/right_shift.d.ts +11 -0
- package/dist/types/common/wasm/rng.d.ts +65 -0
- package/dist/types/common/wasm/roll.d.ts +13 -0
- package/dist/types/common/wasm/rot90.d.ts +14 -0
- package/dist/types/common/wasm/runtime.d.ts +55 -0
- package/dist/types/common/wasm/searchsorted.d.ts +12 -0
- package/dist/types/common/wasm/sign.d.ts +14 -0
- package/dist/types/common/wasm/sinh.d.ts +15 -0
- package/dist/types/common/wasm/sort.d.ts +20 -0
- package/dist/types/common/wasm/sqrt.d.ts +15 -0
- package/dist/types/common/wasm/square.d.ts +13 -0
- package/dist/types/common/wasm/sub.d.ts +19 -0
- package/dist/types/common/wasm/svd.d.ts +18 -0
- package/dist/types/common/wasm/tan.d.ts +15 -0
- package/dist/types/common/wasm/tanh.d.ts +15 -0
- package/dist/types/common/wasm/tile.d.ts +14 -0
- package/dist/types/common/wasm/vdot.d.ts +16 -0
- package/dist/types/common/wasm/vecdot.d.ts +15 -0
- package/dist/types/common/wasm/vecmat.d.ts +13 -0
- package/dist/types/core/index.d.ts +94 -1
- package/dist/types/core/linalg.d.ts +10 -10
- package/dist/types/core/reduction.d.ts +17 -17
- package/dist/types/core/rounding.d.ts +0 -2
- package/dist/types/core/sets.d.ts +1 -1
- package/dist/types/core/sorting.d.ts +1 -1
- package/dist/types/full/index.d.ts +20 -18
- package/dist/types/full/ndarray.d.ts +16 -22
- package/dist/types/index.d.ts +18 -3
- package/dist/types/io/file-ops.d.ts +269 -0
- package/dist/types/io/filesystem.d.ts +21 -0
- package/dist/types/io/zip/types.d.ts +2 -1
- package/dist/types/node.d.ts +3 -275
- package/package.json +54 -35
- package/dist/numpy-ts.node-io.cjs +0 -8
- package/dist/numpy-ts.node-io.cjs.map +0 -7
- package/dist/numpy-ts.node-io.mjs +0 -8
- package/dist/numpy-ts.node-io.mjs.map +0 -7
- package/dist/numpy-ts.node.cjs +0 -8
- package/dist/numpy-ts.node.cjs.map +0 -7
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction argmax.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = argmax(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction argmax (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceArgmax(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_argmax.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction argmin.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = argmin(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction argmin (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceArgmin(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_argmin.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction count_nz.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = count_nonzero(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* uint types route to signed kernels (non-zero check is sign-agnostic).
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction count_nz (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceCountNz(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_count_nz.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction max.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = max(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction max (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceMax(a: ArrayStorage): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated strided max along an axis.
|
|
16
|
+
* Output dtype matches input dtype. Returns output ArrayStorage, or null if WASM can't handle.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wasmReduceMaxStrided(a: ArrayStorage, outerSize: number, axisSize: number, innerSize: number): ArrayStorage | null;
|
|
19
|
+
//# sourceMappingURL=reduce_max.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction mean.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = mean(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels (for correct floatFromInt).
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction mean (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceMean(a: ArrayStorage): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated strided mean along an axis.
|
|
16
|
+
* Output is always float64. Returns output ArrayStorage, or null if WASM can't handle.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wasmReduceMeanStrided(a: ArrayStorage, outerSize: number, axisSize: number, innerSize: number): ArrayStorage | null;
|
|
19
|
+
//# sourceMappingURL=reduce_mean.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction min.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = min(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction min (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceMin(a: ArrayStorage): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated strided min along an axis.
|
|
16
|
+
* Output dtype matches input dtype. Returns output ArrayStorage, or null if WASM can't handle.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wasmReduceMinStrided(a: ArrayStorage, outerSize: number, axisSize: number, innerSize: number): ArrayStorage | null;
|
|
19
|
+
//# sourceMappingURL=reduce_min.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction nanmax.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = nanmax(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Only float64 and float32.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction nanmax (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceNanmax(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_nanmax.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction nanmin.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = nanmin(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Only float64 and float32.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction nanmin (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceNanmin(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_nanmin.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction nansum.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = nansum(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Only float64 and float32 — TS routes int/uint to regular sum.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction nansum (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceNansum(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_nansum.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction product.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = product(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* uint types route to signed kernels (wrapping multiplication gives same bits).
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction product (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceProd(a: ArrayStorage): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated strided prod along an axis.
|
|
16
|
+
* Output dtype may be promoted (narrow ints → i64/u64).
|
|
17
|
+
* Returns output ArrayStorage, or null if WASM can't handle.
|
|
18
|
+
*/
|
|
19
|
+
export declare function wasmReduceProdStrided(a: ArrayStorage, outerSize: number, axisSize: number, innerSize: number): ArrayStorage | null;
|
|
20
|
+
//# sourceMappingURL=reduce_prod.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated quantile computation.
|
|
3
|
+
*
|
|
4
|
+
* Sorts a copy of the data in WASM, then interpolates.
|
|
5
|
+
* All dtypes are converted to f64 before passing to WASM.
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated quantile (no axis, full array).
|
|
11
|
+
* Converts all data to f64, sorts in WASM, interpolates.
|
|
12
|
+
* Returns null if WASM can't handle (complex, non-contiguous, too small).
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmReduceQuantile(a: ArrayStorage, q: number): number | null;
|
|
15
|
+
//# sourceMappingURL=reduce_quantile.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction std.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = std(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction std (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceStd(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_std.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction sum.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = sum(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* uint types route to signed kernels (wrapping addition gives same bits).
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction sum (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceSum(a: ArrayStorage): number | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated strided sum along an axis.
|
|
16
|
+
* Output is always f64 (the JS caller converts to the correct output dtype).
|
|
17
|
+
* Returns f64 ArrayStorage, or null if WASM can't handle.
|
|
18
|
+
*/
|
|
19
|
+
export declare function wasmReduceSumStrided(a: ArrayStorage, outerSize: number, axisSize: number, innerSize: number): ArrayStorage | null;
|
|
20
|
+
//# sourceMappingURL=reduce_sum.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated reduction var.
|
|
3
|
+
*
|
|
4
|
+
* Reduction: result = var(a[0..N])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Unsigned types use SEPARATE kernels.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated reduction var (no axis, full array).
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmReduceVar(a: ArrayStorage): number | null;
|
|
14
|
+
//# sourceMappingURL=reduce_var.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated flat repeat.
|
|
3
|
+
*
|
|
4
|
+
* repeat: Each element a[i] is written `reps` times to output.
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
/**
|
|
9
|
+
* WASM-accelerated flat repeat with uniform repeat count.
|
|
10
|
+
* Only handles flattened repeat (no axis) with a single repeat count (not array).
|
|
11
|
+
* Returns null if WASM can't handle.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmRepeat(a: ArrayStorage, reps: number): ArrayStorage | null;
|
|
14
|
+
//# sourceMappingURL=repeat.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise right shift.
|
|
3
|
+
*
|
|
4
|
+
* Binary: out[i] = a[i] >> b[i] (same-shape contiguous arrays)
|
|
5
|
+
* Scalar: out[i] = a[i] >> scalar
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
export declare function wasmRightShift(a: ArrayStorage, b: ArrayStorage): ArrayStorage | null;
|
|
10
|
+
export declare function wasmRightShiftScalar(a: ArrayStorage, scalar: number): ArrayStorage | null;
|
|
11
|
+
//# sourceMappingURL=right_shift.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM RNG wrapper — NumPy-compatible random number generation.
|
|
3
|
+
*
|
|
4
|
+
* Unlike other WASM wrappers, this is always used (no JS fallback).
|
|
5
|
+
* State persists in WASM globals across calls.
|
|
6
|
+
*/
|
|
7
|
+
export declare function initMT19937(seed: number): void;
|
|
8
|
+
export declare function mt19937Uint32(): number;
|
|
9
|
+
export declare function mt19937Float64(): number;
|
|
10
|
+
export declare function getMT19937State(): {
|
|
11
|
+
mt: Uint32Array;
|
|
12
|
+
mti: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function setMT19937State(mt: Uint32Array, mti: number): void;
|
|
15
|
+
export declare function initPCG64FromSeed(seed: number): void;
|
|
16
|
+
export declare function pcg64Float64(): number;
|
|
17
|
+
export declare function pcg64BoundedUint64(off: number, rng: number): bigint;
|
|
18
|
+
export declare function pcg64SaveState(): BigUint64Array;
|
|
19
|
+
export declare function pcg64RestoreState(state: BigUint64Array): void;
|
|
20
|
+
export declare const standardNormalPCG: () => number;
|
|
21
|
+
export declare const standardExponentialPCG: () => number;
|
|
22
|
+
export declare const legacyGauss: () => number;
|
|
23
|
+
export declare const legacyStandardExponential: () => number;
|
|
24
|
+
export declare const legacyGaussReset: () => void;
|
|
25
|
+
export declare const wasmLegacyStandardGamma: (shape: number) => number;
|
|
26
|
+
export declare const fillUniformF64MT: (n: number) => Float64Array<ArrayBuffer>;
|
|
27
|
+
export declare const fillUniformF64PCG: (n: number) => Float64Array<ArrayBuffer>;
|
|
28
|
+
export declare const fillStandardNormalPCG: (n: number) => Float64Array<ArrayBuffer>;
|
|
29
|
+
export declare const fillStandardExponentialPCG: (n: number) => Float64Array<ArrayBuffer>;
|
|
30
|
+
export declare const fillLegacyGauss: (n: number) => Float64Array<ArrayBuffer>;
|
|
31
|
+
export declare const fillLegacyStandardExponential: (n: number) => Float64Array<ArrayBuffer>;
|
|
32
|
+
export declare const fillStandardCauchy: (n: number) => Float64Array<ArrayBuffer>;
|
|
33
|
+
export declare const fillPermutation: (n: number) => Float64Array<ArrayBuffer>;
|
|
34
|
+
export declare const fillPermutationPCG: (n: number) => BigInt64Array<ArrayBuffer>;
|
|
35
|
+
export declare const fillLegacyStandardGamma: (n: number, shape: number) => Float64Array<ArrayBuffer>;
|
|
36
|
+
export declare const fillLegacyChisquare: (n: number, df: number) => Float64Array<ArrayBuffer>;
|
|
37
|
+
export declare const fillPareto: (n: number, a: number) => Float64Array<ArrayBuffer>;
|
|
38
|
+
export declare const fillPower: (n: number, a: number) => Float64Array<ArrayBuffer>;
|
|
39
|
+
export declare const fillWeibull: (n: number, a: number) => Float64Array<ArrayBuffer>;
|
|
40
|
+
export declare const fillLogistic: (n: number, loc: number, scale: number) => Float64Array<ArrayBuffer>;
|
|
41
|
+
export declare const fillGumbel: (n: number, loc: number, scale: number) => Float64Array<ArrayBuffer>;
|
|
42
|
+
export declare const fillLaplace: (n: number, loc: number, scale: number) => Float64Array<ArrayBuffer>;
|
|
43
|
+
export declare const fillRayleigh: (n: number, scale: number) => Float64Array<ArrayBuffer>;
|
|
44
|
+
export declare const fillTriangular: (n: number, left: number, mode: number, right: number) => Float64Array<ArrayBuffer>;
|
|
45
|
+
export declare const fillLognormal: (n: number, mean: number, sigma: number) => Float64Array<ArrayBuffer>;
|
|
46
|
+
export declare const fillWald: (n: number, mean: number, scale: number) => Float64Array<ArrayBuffer>;
|
|
47
|
+
export declare const fillStandardT: (n: number, df: number) => Float64Array<ArrayBuffer>;
|
|
48
|
+
export declare const fillBeta: (n: number, a: number, b: number) => Float64Array<ArrayBuffer>;
|
|
49
|
+
export declare const fillF: (n: number, dfnum: number, dfden: number) => Float64Array<ArrayBuffer>;
|
|
50
|
+
export declare const fillNoncentralChisquare: (n: number, df: number, nonc: number) => Float64Array<ArrayBuffer>;
|
|
51
|
+
export declare const fillNoncentralF: (n: number, dfnum: number, dfden: number, nonc: number) => Float64Array<ArrayBuffer>;
|
|
52
|
+
export declare const fillVonmises: (n: number, mu: number, kappa: number) => Float64Array<ArrayBuffer>;
|
|
53
|
+
export declare const fillGeometric: (n: number, p: number) => BigInt64Array<ArrayBuffer>;
|
|
54
|
+
export declare const fillPoisson: (n: number, lam: number) => BigInt64Array<ArrayBuffer>;
|
|
55
|
+
export declare const fillBinomial: (n: number, trials: number, p: number) => BigInt64Array<ArrayBuffer>;
|
|
56
|
+
export declare const fillNegativeBinomial: (n: number, nn2: number, p: number) => BigInt64Array<ArrayBuffer>;
|
|
57
|
+
export declare const fillHypergeometric: (n: number, ngood: number, nbad: number, nsample: number) => BigInt64Array<ArrayBuffer>;
|
|
58
|
+
export declare const fillLogseries: (n: number, p: number) => BigInt64Array<ArrayBuffer>;
|
|
59
|
+
export declare const fillZipf: (n: number, a: number) => BigInt64Array<ArrayBuffer>;
|
|
60
|
+
export declare const fillRkInterval: (n: number, max: number) => Uint32Array<ArrayBuffer>;
|
|
61
|
+
export declare const fillRandintI64: (n: number, max: number, low: number) => BigInt64Array<ArrayBuffer>;
|
|
62
|
+
export declare const fillRandintU8: (n: number, rng: number, off: number) => Uint8Array<ArrayBuffer>;
|
|
63
|
+
export declare const fillRandintU16: (n: number, rng: number, off: number) => Uint16Array<ArrayBuffer>;
|
|
64
|
+
export declare const fillBoundedUint64PCG: (n: number, off: number, rng: number) => BigInt64Array<ArrayBuffer>;
|
|
65
|
+
//# sourceMappingURL=rng.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated flat array roll (circular shift).
|
|
3
|
+
*
|
|
4
|
+
* roll: out[i] = a[(i - shift + N) % N]
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
/**
|
|
9
|
+
* WASM-accelerated flat roll (no axis).
|
|
10
|
+
* Returns null if WASM can't handle.
|
|
11
|
+
*/
|
|
12
|
+
export declare function wasmRoll(a: ArrayStorage, shift: number): ArrayStorage | null;
|
|
13
|
+
//# sourceMappingURL=roll.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated 2D 90-degree rotation (k=1, CCW).
|
|
3
|
+
*
|
|
4
|
+
* rot90: dst[r,c] = src[c, cols-1-r]
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
/**
|
|
9
|
+
* WASM-accelerated 2D rot90 (k=1, CCW).
|
|
10
|
+
* Only handles 2D C-contiguous arrays.
|
|
11
|
+
* Returns null if WASM can't handle.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmRot90(a: ArrayStorage): ArrayStorage | null;
|
|
14
|
+
//# sourceMappingURL=rot90.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM Runtime — shared memory management for all WASM kernels.
|
|
3
|
+
*
|
|
4
|
+
* All kernel modules share a single WebAssembly.Memory instance.
|
|
5
|
+
* Uses a bump allocator that resets on every kernel call (no fragmentation).
|
|
6
|
+
* Memory grows monotonically (high-water-mark pattern).
|
|
7
|
+
*/
|
|
8
|
+
import type { TypedArray } from '../dtype';
|
|
9
|
+
/**
|
|
10
|
+
* Get the shared WebAssembly.Memory instance.
|
|
11
|
+
* All WASM kernel modules import this same memory.
|
|
12
|
+
* Starts with 17 pages (~1.1MB) — enough for debug (ReleaseSmall/Safe) WASM builds
|
|
13
|
+
* which have larger binaries and declare higher minimum memory.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getSharedMemory(): WebAssembly.Memory;
|
|
16
|
+
/**
|
|
17
|
+
* Ensure the shared memory has at least `bytes` of usable space
|
|
18
|
+
* (above heapBase). Grows if necessary.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ensureMemory(bytes: number): void;
|
|
21
|
+
/**
|
|
22
|
+
* Reset the bump allocator. Call before each kernel invocation.
|
|
23
|
+
* Also increments wasmCallCount so callers can detect WASM execution.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resetAllocator(base?: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* Set the heap base offset. Called once when the first WASM instance
|
|
28
|
+
* is initialized (reads __heap_base from the WASM exports).
|
|
29
|
+
*/
|
|
30
|
+
export declare function setHeapBase(base: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* Bump-allocate `bytes` from WASM memory. Returns the byte offset.
|
|
33
|
+
* Always 8-byte aligned for TypedArray compatibility.
|
|
34
|
+
*/
|
|
35
|
+
export declare function alloc(bytes: number): number;
|
|
36
|
+
/**
|
|
37
|
+
* Copy a JS TypedArray into WASM memory. Returns the byte offset.
|
|
38
|
+
*/
|
|
39
|
+
export declare function copyIn(src: TypedArray): number;
|
|
40
|
+
/**
|
|
41
|
+
* Copy data from WASM memory into a new JS TypedArray.
|
|
42
|
+
*/
|
|
43
|
+
export declare function copyOut<T extends TypedArray>(ptr: number, length: number, Ctor: new (buffer: ArrayBuffer, byteOffset: number, length: number) => T): T;
|
|
44
|
+
/**
|
|
45
|
+
* Convert Float16Array data to Float32Array for WASM kernel input.
|
|
46
|
+
* WASM kernels operate on f32 for float16 data (no native f16 SIMD).
|
|
47
|
+
* Returns the original data unchanged if not float16.
|
|
48
|
+
*/
|
|
49
|
+
export declare function f16ToF32Input(data: TypedArray, dtype: string): TypedArray;
|
|
50
|
+
/**
|
|
51
|
+
* Convert Float32Array WASM output back to Float16Array.
|
|
52
|
+
* Call after copyOut when the operation's dtype is float16.
|
|
53
|
+
*/
|
|
54
|
+
export declare function f32ToF16Output(data: TypedArray, dtype: string): TypedArray;
|
|
55
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated searchsorted (binary search for insertion indices).
|
|
3
|
+
*
|
|
4
|
+
* Returns null if WASM can't handle this case.
|
|
5
|
+
*/
|
|
6
|
+
import { ArrayStorage } from '../storage';
|
|
7
|
+
/**
|
|
8
|
+
* WASM-accelerated searchsorted.
|
|
9
|
+
* Returns ArrayStorage of int32 insertion indices or null if WASM can't handle it.
|
|
10
|
+
*/
|
|
11
|
+
export declare function wasmSearchsorted(sorted: ArrayStorage, values: ArrayStorage, side: 'left' | 'right'): ArrayStorage | null;
|
|
12
|
+
//# sourceMappingURL=searchsorted.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise sign.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = sign(a[i]) (returns -1, 0, or 1)
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Not defined for complex types.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated element-wise sign.
|
|
11
|
+
* Returns null if WASM can't handle (complex types, non-contiguous, too small).
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmSign(a: ArrayStorage): ArrayStorage | null;
|
|
14
|
+
//# sourceMappingURL=sign.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise hyperbolic sine.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = sinh(a[i])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Float types use native kernels; integer types are converted to float64
|
|
7
|
+
* in JS and run through the f64 SIMD kernel (matches NumPy's promotion).
|
|
8
|
+
*/
|
|
9
|
+
import { ArrayStorage } from '../storage';
|
|
10
|
+
/**
|
|
11
|
+
* WASM-accelerated element-wise hyperbolic sine.
|
|
12
|
+
* Returns null if WASM can't handle (complex, non-contiguous, too small).
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmSinh(a: ArrayStorage): ArrayStorage | null;
|
|
15
|
+
//# sourceMappingURL=sinh.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated in-place array sorting.
|
|
3
|
+
*
|
|
4
|
+
* Sorts a contiguous 1D buffer in-place using heap sort.
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
import type { DType, TypedArray } from '../dtype';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated sort of contiguous slices in a typed array buffer.
|
|
11
|
+
* Uses a single batched WASM call for all slices (eliminates per-slice JS→WASM overhead).
|
|
12
|
+
* Returns true if WASM handled it.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmSortSlices(resultData: TypedArray, sliceOffsets: Int32Array | number[], axisSize: number, outerSize: number, dtype: DType): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* WASM-accelerated sort of a contiguous 1D buffer.
|
|
17
|
+
* Returns sorted ArrayStorage or null if WASM can't handle it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function wasmSort(a: ArrayStorage): ArrayStorage | null;
|
|
20
|
+
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise square root.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = sqrt(a[i])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Float types output same type; integer types use native WASM kernels
|
|
7
|
+
* that convert to f64 internally (no JS conversion loop needed).
|
|
8
|
+
*/
|
|
9
|
+
import { ArrayStorage } from '../storage';
|
|
10
|
+
/**
|
|
11
|
+
* WASM-accelerated element-wise square root.
|
|
12
|
+
* Returns null if WASM can't handle (complex, non-contiguous, too small).
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmSqrt(a: ArrayStorage): ArrayStorage | null;
|
|
15
|
+
//# sourceMappingURL=sqrt.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise square.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = a[i] * a[i]
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
/**
|
|
9
|
+
* WASM-accelerated element-wise square.
|
|
10
|
+
* Returns null if WASM can't handle (non-contiguous, too small).
|
|
11
|
+
*/
|
|
12
|
+
export declare function wasmSquare(a: ArrayStorage): ArrayStorage | null;
|
|
13
|
+
//# sourceMappingURL=square.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise subtraction.
|
|
3
|
+
*
|
|
4
|
+
* Binary: out[i] = a[i] - b[i] (same-shape contiguous arrays)
|
|
5
|
+
* Scalar: out[i] = a[i] - scalar
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated element-wise subtract of two same-shape contiguous arrays.
|
|
11
|
+
* Returns null if WASM can't handle.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmSub(a: ArrayStorage, b: ArrayStorage): ArrayStorage | null;
|
|
14
|
+
/**
|
|
15
|
+
* WASM-accelerated element-wise subtract scalar.
|
|
16
|
+
* Returns null if WASM can't handle.
|
|
17
|
+
*/
|
|
18
|
+
export declare function wasmSubScalar(a: ArrayStorage, scalar: number): ArrayStorage | null;
|
|
19
|
+
//# sourceMappingURL=sub.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated Singular Value Decomposition.
|
|
3
|
+
*
|
|
4
|
+
* Computes A[m×n] = U[m×m] · diag(S) · Vt[n×n] via Jacobi eigendecomposition of A^T·A.
|
|
5
|
+
* Only supports float64 (matches JS behavior of converting all inputs to float64).
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated full SVD for 2D float64 matrices.
|
|
11
|
+
* Returns { u: ArrayStorage, s: ArrayStorage, vt: ArrayStorage } or null.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmSvd(a: ArrayStorage): {
|
|
14
|
+
u: ArrayStorage;
|
|
15
|
+
s: ArrayStorage;
|
|
16
|
+
vt: ArrayStorage;
|
|
17
|
+
} | null;
|
|
18
|
+
//# sourceMappingURL=svd.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise tangent.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = tan(a[i])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Float types use native kernels; integer types are converted to float64
|
|
7
|
+
* in JS and run through the f64 SIMD kernel (matches NumPy's promotion).
|
|
8
|
+
*/
|
|
9
|
+
import { ArrayStorage } from '../storage';
|
|
10
|
+
/**
|
|
11
|
+
* WASM-accelerated element-wise tangent.
|
|
12
|
+
* Returns null if WASM can't handle (complex, non-contiguous, too small).
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmTan(a: ArrayStorage): ArrayStorage | null;
|
|
15
|
+
//# sourceMappingURL=tan.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated element-wise hyperbolic tangent.
|
|
3
|
+
*
|
|
4
|
+
* Unary: out[i] = tanh(a[i])
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
* Float types use native kernels; integer types are converted to float64
|
|
7
|
+
* in JS and run through the f64 SIMD kernel (matches NumPy's promotion).
|
|
8
|
+
*/
|
|
9
|
+
import { ArrayStorage } from '../storage';
|
|
10
|
+
/**
|
|
11
|
+
* WASM-accelerated element-wise hyperbolic tangent.
|
|
12
|
+
* Returns null if WASM can't handle (complex, non-contiguous, too small).
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmTanh(a: ArrayStorage): ArrayStorage | null;
|
|
15
|
+
//# sourceMappingURL=tanh.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated 2D tile.
|
|
3
|
+
*
|
|
4
|
+
* Tiles a [rows x cols] matrix by [rep_rows x rep_cols].
|
|
5
|
+
* Returns null if WASM can't handle this case.
|
|
6
|
+
*/
|
|
7
|
+
import { ArrayStorage } from '../storage';
|
|
8
|
+
/**
|
|
9
|
+
* WASM-accelerated 2D tile.
|
|
10
|
+
* Only handles 2D C-contiguous arrays with 2-element reps.
|
|
11
|
+
* Returns null if WASM can't handle.
|
|
12
|
+
*/
|
|
13
|
+
export declare function wasmTile2D(a: ArrayStorage, repRows: number, repCols: number): ArrayStorage | null;
|
|
14
|
+
//# sourceMappingURL=tile.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated conjugate dot product (vdot) for complex types.
|
|
3
|
+
*
|
|
4
|
+
* Computes sum_k conj(a[k]) * b[k] for flattened 1D complex arrays.
|
|
5
|
+
* For real/integer types, vdot = dot — use wasmDot1D instead.
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
import { Complex } from '../complex';
|
|
10
|
+
/**
|
|
11
|
+
* WASM-accelerated conjugate dot product for complex types.
|
|
12
|
+
* Both a and b must be 1D, contiguous, same-length, complex dtype.
|
|
13
|
+
* Returns Complex or null.
|
|
14
|
+
*/
|
|
15
|
+
export declare function wasmVdotComplex(a: ArrayStorage, b: ArrayStorage): Complex | null;
|
|
16
|
+
//# sourceMappingURL=vdot.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WASM-accelerated batched vector dot product (vecdot).
|
|
3
|
+
*
|
|
4
|
+
* Computes out[i] = sum_k a[i,k] * b[i,k] for contiguous 2D arrays
|
|
5
|
+
* where the last axis is contracted. Both a and b must have the same shape.
|
|
6
|
+
* Returns null if WASM can't handle this case.
|
|
7
|
+
*/
|
|
8
|
+
import { ArrayStorage } from '../storage';
|
|
9
|
+
/**
|
|
10
|
+
* WASM-accelerated vecdot for 2D arrays with contraction along the last axis.
|
|
11
|
+
* a and b must be 2D with matching shapes, both C-contiguous.
|
|
12
|
+
* Returns ArrayStorage with shape [B] (batch dimension), or null.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wasmVecdot(a: ArrayStorage, b: ArrayStorage): ArrayStorage | null;
|
|
15
|
+
//# sourceMappingURL=vecdot.d.ts.map
|