@danielsimonjr/mathts-wasm 0.1.2 → 0.1.3

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/build/mathts.js CHANGED
@@ -638,6 +638,298 @@ async function instantiate(module, imports = {}) {
638
638
  __release(x);
639
639
  }
640
640
  },
641
+ matrix_svd(a, m, n) {
642
+ // src/ops/svd/matrix_svd(~lib/typedarray/Float64Array, i32, i32) => ~lib/typedarray/Float64Array
643
+ a = __lowerTypedArray(Float64Array, 5, 3, a) || __notnull();
644
+ return __liftTypedArray(Float64Array, exports.matrix_svd(a, m, n) >>> 0);
645
+ },
646
+ matrix_singular_values(a, m, n) {
647
+ // src/ops/svd/matrix_singular_values(~lib/typedarray/Float64Array, i32, i32) => ~lib/typedarray/Float64Array
648
+ a = __lowerTypedArray(Float64Array, 5, 3, a) || __notnull();
649
+ return __liftTypedArray(Float64Array, exports.matrix_singular_values(a, m, n) >>> 0);
650
+ },
651
+ matrix_lu_decompose(a, n, l_out, u_out, perm_out) {
652
+ // src/algebra/decomposition/matrix_lu_decompose(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Int32Array) => i32
653
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
654
+ l_out = __retain(__lowerTypedArray(Float64Array, 5, 3, l_out) || __notnull());
655
+ u_out = __retain(__lowerTypedArray(Float64Array, 5, 3, u_out) || __notnull());
656
+ perm_out = __lowerTypedArray(Int32Array, 6, 2, perm_out) || __notnull();
657
+ try {
658
+ return exports.matrix_lu_decompose(a, n, l_out, u_out, perm_out);
659
+ } finally {
660
+ __release(a);
661
+ __release(l_out);
662
+ __release(u_out);
663
+ }
664
+ },
665
+ matrix_qr_decompose(a, m, n, q_out, r_out) {
666
+ // src/algebra/decomposition/matrix_qr_decompose(~lib/typedarray/Float64Array, i32, i32, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => i32
667
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
668
+ q_out = __retain(__lowerTypedArray(Float64Array, 5, 3, q_out) || __notnull());
669
+ r_out = __lowerTypedArray(Float64Array, 5, 3, r_out) || __notnull();
670
+ try {
671
+ return exports.matrix_qr_decompose(a, m, n, q_out, r_out);
672
+ } finally {
673
+ __release(a);
674
+ __release(q_out);
675
+ }
676
+ },
677
+ matrix_cholesky(a, n, l_out) {
678
+ // src/algebra/decomposition/matrix_cholesky(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array) => i32
679
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
680
+ l_out = __lowerTypedArray(Float64Array, 5, 3, l_out) || __notnull();
681
+ try {
682
+ return exports.matrix_cholesky(a, n, l_out);
683
+ } finally {
684
+ __release(a);
685
+ }
686
+ },
687
+ matrix_inverse(a, n, result, work) {
688
+ // src/algebra/decomposition/matrix_inverse(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => i32
689
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
690
+ result = __retain(__lowerTypedArray(Float64Array, 5, 3, result) || __notnull());
691
+ work = __lowerTypedArray(Float64Array, 5, 3, work) || __notnull();
692
+ try {
693
+ return exports.matrix_inverse(a, n, result, work);
694
+ } finally {
695
+ __release(a);
696
+ __release(result);
697
+ }
698
+ },
699
+ matrix_determinant(a, n, work) {
700
+ // src/algebra/decomposition/matrix_determinant(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array) => f64
701
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
702
+ work = __lowerTypedArray(Float64Array, 5, 3, work) || __notnull();
703
+ try {
704
+ return exports.matrix_determinant(a, n, work);
705
+ } finally {
706
+ __release(a);
707
+ }
708
+ },
709
+ primeFactors(n) {
710
+ // src/ops/number-theory/primeFactors(f64) => ~lib/typedarray/Float64Array
711
+ return __liftTypedArray(Float64Array, exports.primeFactors(n) >>> 0);
712
+ },
713
+ divisors(n) {
714
+ // src/ops/number-theory/divisors(f64) => ~lib/typedarray/Float64Array
715
+ return __liftTypedArray(Float64Array, exports.divisors(n) >>> 0);
716
+ },
717
+ integerDigits(n, base) {
718
+ // src/ops/number-theory/integerDigits(f64, f64) => ~lib/typedarray/Float64Array
719
+ return __liftTypedArray(Float64Array, exports.integerDigits(n, base) >>> 0);
720
+ },
721
+ chineseRemainder(rem, mods) {
722
+ // src/ops/number-theory/chineseRemainder(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => f64
723
+ rem = __retain(__lowerTypedArray(Float64Array, 5, 3, rem) || __notnull());
724
+ mods = __lowerTypedArray(Float64Array, 5, 3, mods) || __notnull();
725
+ try {
726
+ return exports.chineseRemainder(rem, mods);
727
+ } finally {
728
+ __release(rem);
729
+ }
730
+ },
731
+ polyadd(a, b) {
732
+ // src/ops/polynomial/polyadd(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
733
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
734
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
735
+ try {
736
+ return __liftTypedArray(Float64Array, exports.polyadd(a, b) >>> 0);
737
+ } finally {
738
+ __release(a);
739
+ }
740
+ },
741
+ polynomialQuotient(a, b) {
742
+ // src/ops/polynomial/polynomialQuotient(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
743
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
744
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
745
+ try {
746
+ return __liftTypedArray(Float64Array, exports.polynomialQuotient(a, b) >>> 0);
747
+ } finally {
748
+ __release(a);
749
+ }
750
+ },
751
+ polynomialRemainder(a, b) {
752
+ // src/ops/polynomial/polynomialRemainder(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
753
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
754
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
755
+ try {
756
+ return __liftTypedArray(Float64Array, exports.polynomialRemainder(a, b) >>> 0);
757
+ } finally {
758
+ __release(a);
759
+ }
760
+ },
761
+ polynomialGCD(a, b) {
762
+ // src/ops/polynomial/polynomialGCD(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
763
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
764
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
765
+ try {
766
+ return __liftTypedArray(Float64Array, exports.polynomialGCD(a, b) >>> 0);
767
+ } finally {
768
+ __release(a);
769
+ }
770
+ },
771
+ polynomialLCM(a, b) {
772
+ // src/ops/polynomial/polynomialLCM(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
773
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
774
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
775
+ try {
776
+ return __liftTypedArray(Float64Array, exports.polynomialLCM(a, b) >>> 0);
777
+ } finally {
778
+ __release(a);
779
+ }
780
+ },
781
+ discriminant(coeffs) {
782
+ // src/ops/polynomial/discriminant(~lib/typedarray/Float64Array) => f64
783
+ coeffs = __lowerTypedArray(Float64Array, 5, 3, coeffs) || __notnull();
784
+ return exports.discriminant(coeffs);
785
+ },
786
+ resultant(p, q) {
787
+ // src/ops/polynomial/resultant(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => f64
788
+ p = __retain(__lowerTypedArray(Float64Array, 5, 3, p) || __notnull());
789
+ q = __lowerTypedArray(Float64Array, 5, 3, q) || __notnull();
790
+ try {
791
+ return exports.resultant(p, q);
792
+ } finally {
793
+ __release(p);
794
+ }
795
+ },
796
+ resample(x, newRate, oldRate) {
797
+ // src/ops/signal/resample(~lib/typedarray/Float64Array, f64, f64) => ~lib/typedarray/Float64Array
798
+ x = __lowerTypedArray(Float64Array, 5, 3, x) || __notnull();
799
+ return __liftTypedArray(Float64Array, exports.resample(x, newRate, oldRate) >>> 0);
800
+ },
801
+ medfilt(x, n) {
802
+ // src/ops/signal/medfilt(~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
803
+ x = __lowerTypedArray(Float64Array, 5, 3, x) || __notnull();
804
+ return __liftTypedArray(Float64Array, exports.medfilt(x, n) >>> 0);
805
+ },
806
+ windowFunction(n, windowType) {
807
+ // src/ops/signal/windowFunction(i32, i32) => ~lib/typedarray/Float64Array
808
+ return __liftTypedArray(Float64Array, exports.windowFunction(n, windowType) >>> 0);
809
+ },
810
+ apply_window_f64(samples, windowType) {
811
+ // src/signal/apply_window_f64(~lib/typedarray/Float64Array, i32) => i32
812
+ samples = __lowerTypedArray(Float64Array, 5, 3, samples) || __notnull();
813
+ return exports.apply_window_f64(samples, windowType);
814
+ },
815
+ welch_psd_f64(samples, frameLength, overlap, windowType) {
816
+ // src/signal/welch_psd_f64(~lib/typedarray/Float64Array, i32, i32, i32) => ~lib/typedarray/Float64Array
817
+ samples = __lowerTypedArray(Float64Array, 5, 3, samples) || __notnull();
818
+ return __liftTypedArray(Float64Array, exports.welch_psd_f64(samples, frameLength, overlap, windowType) >>> 0);
819
+ },
820
+ bartlett_psd_f64(samples, frameLength) {
821
+ // src/signal/bartlett_psd_f64(~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
822
+ samples = __lowerTypedArray(Float64Array, 5, 3, samples) || __notnull();
823
+ return __liftTypedArray(Float64Array, exports.bartlett_psd_f64(samples, frameLength) >>> 0);
824
+ },
825
+ goertzel_f64(samples, targetFreq, sampleRate) {
826
+ // src/signal/goertzel_f64(~lib/typedarray/Float64Array, f64, f64) => f64
827
+ samples = __lowerTypedArray(Float64Array, 5, 3, samples) || __notnull();
828
+ return exports.goertzel_f64(samples, targetFreq, sampleRate);
829
+ },
830
+ chirp_z_transform_f64(samples, m, phiStartRe, phiStartIm, phiStepRe, phiStepIm) {
831
+ // src/signal/chirp_z_transform_f64(~lib/typedarray/Float64Array, i32, f64, f64, f64, f64) => ~lib/typedarray/Float64Array
832
+ samples = __lowerTypedArray(Float64Array, 5, 3, samples) || __notnull();
833
+ return __liftTypedArray(Float64Array, exports.chirp_z_transform_f64(samples, m, phiStartRe, phiStartIm, phiStepRe, phiStepIm) >>> 0);
834
+ },
835
+ rowReduce(a, m, n, tol) {
836
+ // src/ops/linalg/rowReduce(~lib/typedarray/Float64Array, i32, i32, f64) => ~lib/typedarray/Float64Array
837
+ a = __lowerTypedArray(Float64Array, 5, 3, a) || __notnull();
838
+ return __liftTypedArray(Float64Array, exports.rowReduce(a, m, n, tol) >>> 0);
839
+ },
840
+ characteristicPolynomial(a, n) {
841
+ // src/ops/linalg/characteristicPolynomial(~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
842
+ a = __lowerTypedArray(Float64Array, 5, 3, a) || __notnull();
843
+ return __liftTypedArray(Float64Array, exports.characteristicPolynomial(a, n) >>> 0);
844
+ },
845
+ expfit(xs, ys) {
846
+ // src/ops/curvefit/expfit(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
847
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
848
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
849
+ try {
850
+ return __liftTypedArray(Float64Array, exports.expfit(xs, ys) >>> 0);
851
+ } finally {
852
+ __release(xs);
853
+ }
854
+ },
855
+ logfit(xs, ys) {
856
+ // src/ops/curvefit/logfit(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
857
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
858
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
859
+ try {
860
+ return __liftTypedArray(Float64Array, exports.logfit(xs, ys) >>> 0);
861
+ } finally {
862
+ __release(xs);
863
+ }
864
+ },
865
+ powerfit(xs, ys) {
866
+ // src/ops/curvefit/powerfit(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
867
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
868
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
869
+ try {
870
+ return __liftTypedArray(Float64Array, exports.powerfit(xs, ys) >>> 0);
871
+ } finally {
872
+ __release(xs);
873
+ }
874
+ },
875
+ quadprog(h, n, f, a, m, b) {
876
+ // src/ops/optimization/quadprog(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
877
+ h = __retain(__lowerTypedArray(Float64Array, 5, 3, h) || __notnull());
878
+ f = __retain(__lowerTypedArray(Float64Array, 5, 3, f) || __notnull());
879
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
880
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
881
+ try {
882
+ return __liftTypedArray(Float64Array, exports.quadprog(h, n, f, a, m, b) >>> 0);
883
+ } finally {
884
+ __release(h);
885
+ __release(f);
886
+ __release(a);
887
+ }
888
+ },
889
+ linprog(c, n, a, b, m) {
890
+ // src/ops/optimization/linprog(~lib/typedarray/Float64Array, i32, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
891
+ c = __retain(__lowerTypedArray(Float64Array, 5, 3, c) || __notnull());
892
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
893
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
894
+ try {
895
+ return __liftTypedArray(Float64Array, exports.linprog(c, n, a, b, m) >>> 0);
896
+ } finally {
897
+ __release(c);
898
+ __release(a);
899
+ }
900
+ },
901
+ nullspace(a, m, n) {
902
+ // src/ops/optimization/nullspace(~lib/typedarray/Float64Array, i32, i32) => ~lib/typedarray/Float64Array
903
+ a = __lowerTypedArray(Float64Array, 5, 3, a) || __notnull();
904
+ return __liftTypedArray(Float64Array, exports.nullspace(a, m, n) >>> 0);
905
+ },
906
+ residue(p, q) {
907
+ // src/ops/approx/residue(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
908
+ p = __retain(__lowerTypedArray(Float64Array, 5, 3, p) || __notnull());
909
+ q = __lowerTypedArray(Float64Array, 5, 3, q) || __notnull();
910
+ try {
911
+ return __liftTypedArray(Float64Array, exports.residue(p, q) >>> 0);
912
+ } finally {
913
+ __release(p);
914
+ }
915
+ },
916
+ padeApproximant(coeffs, m, n) {
917
+ // src/ops/approx/padeApproximant(~lib/typedarray/Float64Array, i32, i32) => ~lib/typedarray/Float64Array
918
+ coeffs = __lowerTypedArray(Float64Array, 5, 3, coeffs) || __notnull();
919
+ return __liftTypedArray(Float64Array, exports.padeApproximant(coeffs, m, n) >>> 0);
920
+ },
921
+ tensorTranspose(data, shape, perm) {
922
+ // src/ops/tensor/tensorTranspose(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
923
+ data = __retain(__lowerTypedArray(Float64Array, 5, 3, data) || __notnull());
924
+ shape = __retain(__lowerTypedArray(Float64Array, 5, 3, shape) || __notnull());
925
+ perm = __lowerTypedArray(Float64Array, 5, 3, perm) || __notnull();
926
+ try {
927
+ return __liftTypedArray(Float64Array, exports.tensorTranspose(data, shape, perm) >>> 0);
928
+ } finally {
929
+ __release(data);
930
+ __release(shape);
931
+ }
932
+ },
641
933
  complex_add(a, b) {
642
934
  // src/ops/complex-ops/complex_add(src/types/complex/Complex, src/types/complex/Complex) => src/types/complex/Complex
643
935
  a = __retain(__lowerInternref(a) || __notnull());
@@ -904,6 +1196,312 @@ async function instantiate(module, imports = {}) {
904
1196
  __release(a);
905
1197
  }
906
1198
  },
1199
+ bitAnd_i32_array(a, b, result) {
1200
+ // src/ops/bitwise/bitAnd_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1201
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1202
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1203
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1204
+ try {
1205
+ exports.bitAnd_i32_array(a, b, result);
1206
+ } finally {
1207
+ __release(a);
1208
+ __release(b);
1209
+ }
1210
+ },
1211
+ bitOr_i32_array(a, b, result) {
1212
+ // src/ops/bitwise/bitOr_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1213
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1214
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1215
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1216
+ try {
1217
+ exports.bitOr_i32_array(a, b, result);
1218
+ } finally {
1219
+ __release(a);
1220
+ __release(b);
1221
+ }
1222
+ },
1223
+ bitXor_i32_array(a, b, result) {
1224
+ // src/ops/bitwise/bitXor_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1225
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1226
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1227
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1228
+ try {
1229
+ exports.bitXor_i32_array(a, b, result);
1230
+ } finally {
1231
+ __release(a);
1232
+ __release(b);
1233
+ }
1234
+ },
1235
+ bitNot_i32_array(a, result) {
1236
+ // src/ops/bitwise/bitNot_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1237
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1238
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1239
+ try {
1240
+ exports.bitNot_i32_array(a, result);
1241
+ } finally {
1242
+ __release(a);
1243
+ }
1244
+ },
1245
+ leftShift_i32_array(a, b, result) {
1246
+ // src/ops/bitwise/leftShift_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1247
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1248
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1249
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1250
+ try {
1251
+ exports.leftShift_i32_array(a, b, result);
1252
+ } finally {
1253
+ __release(a);
1254
+ __release(b);
1255
+ }
1256
+ },
1257
+ rightArithShift_i32_array(a, b, result) {
1258
+ // src/ops/bitwise/rightArithShift_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1259
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1260
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1261
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1262
+ try {
1263
+ exports.rightArithShift_i32_array(a, b, result);
1264
+ } finally {
1265
+ __release(a);
1266
+ __release(b);
1267
+ }
1268
+ },
1269
+ rightLogShift_i32_array(a, b, result) {
1270
+ // src/ops/bitwise/rightLogShift_i32_array(~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array, ~lib/typedarray/Int32Array) => void
1271
+ a = __retain(__lowerTypedArray(Int32Array, 6, 2, a) || __notnull());
1272
+ b = __retain(__lowerTypedArray(Int32Array, 6, 2, b) || __notnull());
1273
+ result = __lowerTypedArray(Int32Array, 6, 2, result) || __notnull();
1274
+ try {
1275
+ exports.rightLogShift_i32_array(a, b, result);
1276
+ } finally {
1277
+ __release(a);
1278
+ __release(b);
1279
+ }
1280
+ },
1281
+ poly_mul_f64(a, b) {
1282
+ // src/poly/poly_mul_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1283
+ a = __retain(__lowerTypedArray(Float64Array, 5, 3, a) || __notnull());
1284
+ b = __lowerTypedArray(Float64Array, 5, 3, b) || __notnull();
1285
+ try {
1286
+ return __liftTypedArray(Float64Array, exports.poly_mul_f64(a, b) >>> 0);
1287
+ } finally {
1288
+ __release(a);
1289
+ }
1290
+ },
1291
+ poly_div_mod_f64(num, den) {
1292
+ // src/poly/poly_div_mod_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1293
+ num = __retain(__lowerTypedArray(Float64Array, 5, 3, num) || __notnull());
1294
+ den = __lowerTypedArray(Float64Array, 5, 3, den) || __notnull();
1295
+ try {
1296
+ return __liftTypedArray(Float64Array, exports.poly_div_mod_f64(num, den) >>> 0);
1297
+ } finally {
1298
+ __release(num);
1299
+ }
1300
+ },
1301
+ poly_fit_f64(xs, ys, degree) {
1302
+ // src/poly/poly_fit_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
1303
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1304
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
1305
+ try {
1306
+ return __liftTypedArray(Float64Array, exports.poly_fit_f64(xs, ys, degree) >>> 0);
1307
+ } finally {
1308
+ __release(xs);
1309
+ }
1310
+ },
1311
+ cheb_fit_f64(xs, ys, degree) {
1312
+ // src/poly/cheb_fit_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
1313
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1314
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
1315
+ try {
1316
+ return __liftTypedArray(Float64Array, exports.cheb_fit_f64(xs, ys, degree) >>> 0);
1317
+ } finally {
1318
+ __release(xs);
1319
+ }
1320
+ },
1321
+ legendre_fit_f64(xs, ys, degree) {
1322
+ // src/poly/legendre_fit_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, i32) => ~lib/typedarray/Float64Array
1323
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1324
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
1325
+ try {
1326
+ return __liftTypedArray(Float64Array, exports.legendre_fit_f64(xs, ys, degree) >>> 0);
1327
+ } finally {
1328
+ __release(xs);
1329
+ }
1330
+ },
1331
+ tridiag_solve_f64(diag, lower, upper, rhs) {
1332
+ // src/tridiag/tridiag_solve_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1333
+ diag = __retain(__lowerTypedArray(Float64Array, 5, 3, diag) || __notnull());
1334
+ lower = __retain(__lowerTypedArray(Float64Array, 5, 3, lower) || __notnull());
1335
+ upper = __retain(__lowerTypedArray(Float64Array, 5, 3, upper) || __notnull());
1336
+ rhs = __lowerTypedArray(Float64Array, 5, 3, rhs) || __notnull();
1337
+ try {
1338
+ return __liftTypedArray(Float64Array, exports.tridiag_solve_f64(diag, lower, upper, rhs) >>> 0);
1339
+ } finally {
1340
+ __release(diag);
1341
+ __release(lower);
1342
+ __release(upper);
1343
+ }
1344
+ },
1345
+ divided_difference_f64(xs, ys) {
1346
+ // src/tridiag/divided_difference_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1347
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1348
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
1349
+ try {
1350
+ return __liftTypedArray(Float64Array, exports.divided_difference_f64(xs, ys) >>> 0);
1351
+ } finally {
1352
+ __release(xs);
1353
+ }
1354
+ },
1355
+ bessel_j0_f64(xs) {
1356
+ // src/special/bessel_j0_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1357
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1358
+ return __liftTypedArray(Float64Array, exports.bessel_j0_f64(xs) >>> 0);
1359
+ },
1360
+ bessel_j1_f64(xs) {
1361
+ // src/special/bessel_j1_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1362
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1363
+ return __liftTypedArray(Float64Array, exports.bessel_j1_f64(xs) >>> 0);
1364
+ },
1365
+ bessel_jn_f64(n, xs) {
1366
+ // src/special/bessel_jn_f64(i32, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1367
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1368
+ return __liftTypedArray(Float64Array, exports.bessel_jn_f64(n, xs) >>> 0);
1369
+ },
1370
+ bessel_y0_f64(xs) {
1371
+ // src/special/bessel_y0_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1372
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1373
+ return __liftTypedArray(Float64Array, exports.bessel_y0_f64(xs) >>> 0);
1374
+ },
1375
+ bessel_y1_f64(xs) {
1376
+ // src/special/bessel_y1_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1377
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1378
+ return __liftTypedArray(Float64Array, exports.bessel_y1_f64(xs) >>> 0);
1379
+ },
1380
+ bessel_yn_f64(n, xs) {
1381
+ // src/special/bessel_yn_f64(i32, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1382
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1383
+ return __liftTypedArray(Float64Array, exports.bessel_yn_f64(n, xs) >>> 0);
1384
+ },
1385
+ airy_ai_f64(xs) {
1386
+ // src/special/airy_ai_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1387
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1388
+ return __liftTypedArray(Float64Array, exports.airy_ai_f64(xs) >>> 0);
1389
+ },
1390
+ airy_bi_f64(xs) {
1391
+ // src/special/airy_bi_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1392
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1393
+ return __liftTypedArray(Float64Array, exports.airy_bi_f64(xs) >>> 0);
1394
+ },
1395
+ elliptic_k_f64(ms) {
1396
+ // src/special/elliptic_k_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1397
+ ms = __lowerTypedArray(Float64Array, 5, 3, ms) || __notnull();
1398
+ return __liftTypedArray(Float64Array, exports.elliptic_k_f64(ms) >>> 0);
1399
+ },
1400
+ elliptic_e_f64(ms) {
1401
+ // src/special/elliptic_e_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1402
+ ms = __lowerTypedArray(Float64Array, 5, 3, ms) || __notnull();
1403
+ return __liftTypedArray(Float64Array, exports.elliptic_e_f64(ms) >>> 0);
1404
+ },
1405
+ lgamma_f64(xs) {
1406
+ // src/special/lgamma_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1407
+ xs = __lowerTypedArray(Float64Array, 5, 3, xs) || __notnull();
1408
+ return __liftTypedArray(Float64Array, exports.lgamma_f64(xs) >>> 0);
1409
+ },
1410
+ carlson_rc_f64(xs, ys) {
1411
+ // src/special/carlson_rc_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1412
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1413
+ ys = __lowerTypedArray(Float64Array, 5, 3, ys) || __notnull();
1414
+ try {
1415
+ return __liftTypedArray(Float64Array, exports.carlson_rc_f64(xs, ys) >>> 0);
1416
+ } finally {
1417
+ __release(xs);
1418
+ }
1419
+ },
1420
+ carlson_rf_f64(xs, ys, zs) {
1421
+ // src/special/carlson_rf_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1422
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1423
+ ys = __retain(__lowerTypedArray(Float64Array, 5, 3, ys) || __notnull());
1424
+ zs = __lowerTypedArray(Float64Array, 5, 3, zs) || __notnull();
1425
+ try {
1426
+ return __liftTypedArray(Float64Array, exports.carlson_rf_f64(xs, ys, zs) >>> 0);
1427
+ } finally {
1428
+ __release(xs);
1429
+ __release(ys);
1430
+ }
1431
+ },
1432
+ carlson_rd_f64(xs, ys, zs) {
1433
+ // src/special/carlson_rd_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1434
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1435
+ ys = __retain(__lowerTypedArray(Float64Array, 5, 3, ys) || __notnull());
1436
+ zs = __lowerTypedArray(Float64Array, 5, 3, zs) || __notnull();
1437
+ try {
1438
+ return __liftTypedArray(Float64Array, exports.carlson_rd_f64(xs, ys, zs) >>> 0);
1439
+ } finally {
1440
+ __release(xs);
1441
+ __release(ys);
1442
+ }
1443
+ },
1444
+ carlson_rj_f64(xs, ys, zs, ps) {
1445
+ // src/special/carlson_rj_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1446
+ xs = __retain(__lowerTypedArray(Float64Array, 5, 3, xs) || __notnull());
1447
+ ys = __retain(__lowerTypedArray(Float64Array, 5, 3, ys) || __notnull());
1448
+ zs = __retain(__lowerTypedArray(Float64Array, 5, 3, zs) || __notnull());
1449
+ ps = __lowerTypedArray(Float64Array, 5, 3, ps) || __notnull();
1450
+ try {
1451
+ return __liftTypedArray(Float64Array, exports.carlson_rj_f64(xs, ys, zs, ps) >>> 0);
1452
+ } finally {
1453
+ __release(xs);
1454
+ __release(ys);
1455
+ __release(zs);
1456
+ }
1457
+ },
1458
+ elliptic_f_incomplete_f64(phis, ms) {
1459
+ // src/special/elliptic_f_incomplete_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1460
+ phis = __retain(__lowerTypedArray(Float64Array, 5, 3, phis) || __notnull());
1461
+ ms = __lowerTypedArray(Float64Array, 5, 3, ms) || __notnull();
1462
+ try {
1463
+ return __liftTypedArray(Float64Array, exports.elliptic_f_incomplete_f64(phis, ms) >>> 0);
1464
+ } finally {
1465
+ __release(phis);
1466
+ }
1467
+ },
1468
+ elliptic_e_incomplete_f64(phis, ms) {
1469
+ // src/special/elliptic_e_incomplete_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1470
+ phis = __retain(__lowerTypedArray(Float64Array, 5, 3, phis) || __notnull());
1471
+ ms = __lowerTypedArray(Float64Array, 5, 3, ms) || __notnull();
1472
+ try {
1473
+ return __liftTypedArray(Float64Array, exports.elliptic_e_incomplete_f64(phis, ms) >>> 0);
1474
+ } finally {
1475
+ __release(phis);
1476
+ }
1477
+ },
1478
+ elliptic_pi_incomplete_f64(ns, phis, ms) {
1479
+ // src/special/elliptic_pi_incomplete_f64(~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array, ~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1480
+ ns = __retain(__lowerTypedArray(Float64Array, 5, 3, ns) || __notnull());
1481
+ phis = __retain(__lowerTypedArray(Float64Array, 5, 3, phis) || __notnull());
1482
+ ms = __lowerTypedArray(Float64Array, 5, 3, ms) || __notnull();
1483
+ try {
1484
+ return __liftTypedArray(Float64Array, exports.elliptic_pi_incomplete_f64(ns, phis, ms) >>> 0);
1485
+ } finally {
1486
+ __release(ns);
1487
+ __release(phis);
1488
+ }
1489
+ },
1490
+ sort_f64(data) {
1491
+ // src/sort/sort_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Float64Array
1492
+ data = __lowerTypedArray(Float64Array, 5, 3, data) || __notnull();
1493
+ return __liftTypedArray(Float64Array, exports.sort_f64(data) >>> 0);
1494
+ },
1495
+ argsort_f64(data) {
1496
+ // src/sort/argsort_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Int32Array
1497
+ data = __lowerTypedArray(Float64Array, 5, 3, data) || __notnull();
1498
+ return __liftTypedArray(Int32Array, exports.argsort_f64(data) >>> 0);
1499
+ },
1500
+ rank_f64(data) {
1501
+ // src/sort/rank_f64(~lib/typedarray/Float64Array) => ~lib/typedarray/Int32Array
1502
+ data = __lowerTypedArray(Float64Array, 5, 3, data) || __notnull();
1503
+ return __liftTypedArray(Int32Array, exports.rank_f64(data) >>> 0);
1504
+ },
907
1505
  complex_array_zeros(n) {
908
1506
  // src/ops/complex-array/complex_array_zeros(i32) => ~lib/typedarray/Float64Array
909
1507
  return __liftTypedArray(Float64Array, exports.complex_array_zeros(n) >>> 0);
@@ -1397,6 +1995,59 @@ export const {
1397
1995
  matrix_axpy,
1398
1996
  matrix_gemm,
1399
1997
  matrix_gemv,
1998
+ matrix_svd,
1999
+ matrix_singular_values,
2000
+ matrix_lu_decompose,
2001
+ matrix_qr_decompose,
2002
+ matrix_cholesky,
2003
+ matrix_inverse,
2004
+ matrix_determinant,
2005
+ chebyshevT,
2006
+ hermiteH,
2007
+ laguerreL,
2008
+ legendreP,
2009
+ erfi,
2010
+ expIntegralEi,
2011
+ sinIntegral,
2012
+ cosIntegral,
2013
+ logIntegral,
2014
+ eulerPhi,
2015
+ divisorSigma,
2016
+ moebiusMu,
2017
+ carmichaelLambda,
2018
+ jacobiSymbol,
2019
+ harmonicNumber,
2020
+ partitions,
2021
+ primeFactors,
2022
+ divisors,
2023
+ integerDigits,
2024
+ chineseRemainder,
2025
+ polyadd,
2026
+ polynomialQuotient,
2027
+ polynomialRemainder,
2028
+ polynomialGCD,
2029
+ polynomialLCM,
2030
+ discriminant,
2031
+ resultant,
2032
+ resample,
2033
+ medfilt,
2034
+ windowFunction,
2035
+ apply_window_f64,
2036
+ welch_psd_f64,
2037
+ bartlett_psd_f64,
2038
+ goertzel_f64,
2039
+ chirp_z_transform_f64,
2040
+ rowReduce,
2041
+ characteristicPolynomial,
2042
+ expfit,
2043
+ logfit,
2044
+ powerfit,
2045
+ quadprog,
2046
+ linprog,
2047
+ nullspace,
2048
+ residue,
2049
+ padeApproximant,
2050
+ tensorTranspose,
1400
2051
  complex_add,
1401
2052
  complex_sub,
1402
2053
  complex_mul,
@@ -1441,6 +2092,41 @@ export const {
1441
2092
  complex_to_polar,
1442
2093
  complex_axpby,
1443
2094
  complex_distance,
2095
+ bitAnd_i32_array,
2096
+ bitOr_i32_array,
2097
+ bitXor_i32_array,
2098
+ bitNot_i32_array,
2099
+ leftShift_i32_array,
2100
+ rightArithShift_i32_array,
2101
+ rightLogShift_i32_array,
2102
+ poly_mul_f64,
2103
+ poly_div_mod_f64,
2104
+ poly_fit_f64,
2105
+ cheb_fit_f64,
2106
+ legendre_fit_f64,
2107
+ tridiag_solve_f64,
2108
+ divided_difference_f64,
2109
+ bessel_j0_f64,
2110
+ bessel_j1_f64,
2111
+ bessel_jn_f64,
2112
+ bessel_y0_f64,
2113
+ bessel_y1_f64,
2114
+ bessel_yn_f64,
2115
+ airy_ai_f64,
2116
+ airy_bi_f64,
2117
+ elliptic_k_f64,
2118
+ elliptic_e_f64,
2119
+ lgamma_f64,
2120
+ carlson_rc_f64,
2121
+ carlson_rf_f64,
2122
+ carlson_rd_f64,
2123
+ carlson_rj_f64,
2124
+ elliptic_f_incomplete_f64,
2125
+ elliptic_e_incomplete_f64,
2126
+ elliptic_pi_incomplete_f64,
2127
+ sort_f64,
2128
+ argsort_f64,
2129
+ rank_f64,
1444
2130
  complex_array_zeros,
1445
2131
  complex_array_ones,
1446
2132
  complex_array_fill,