freealg 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl

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.
freealg/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.11"
1
+ __version__ = "0.1.12"
freealg/_decompress.py CHANGED
@@ -20,8 +20,8 @@ __all__ = ['decompress', 'reverse_characteristics']
20
20
  # decompress
21
21
  # ==========
22
22
 
23
- def decompress(freeform, size, x=None, delta=1e-4, iterations=500,
24
- step_size=0.1, tolerance=1e-4):
23
+ def decompress(freeform, size, x=None, delta=1e-6, iterations=500,
24
+ step_size=0.1, tolerance=1e-9):
25
25
  """
26
26
  Free decompression of spectral density.
27
27
 
freealg/freeform.py CHANGED
@@ -784,7 +784,7 @@ class FreeForm(object):
784
784
  # ==========
785
785
 
786
786
  def decompress(self, size, x=None, iterations=500, eigvals=True,
787
- step_size=0.1, tolerance=1e-6, seed=None, plot=False,
787
+ step_size=0.1, tolerance=1e-9, seed=None, plot=False,
788
788
  latex=False, save=False):
789
789
  """
790
790
  Free decompression of spectral density.
@@ -808,7 +808,7 @@ class FreeForm(object):
808
808
  step_size: float, default=0.1
809
809
  Step size for Newton iterations.
810
810
 
811
- tolerance: float, default=1e-6
811
+ tolerance: float, default=1e-9
812
812
  Tolerance for the solution obtained by the Newton solver. Also
813
813
  used for the finite difference approximation to the derivative.
814
814
 
@@ -956,12 +956,13 @@ def eigfree(A, N = None, psd = None):
956
956
  ff.n = n_s
957
957
 
958
958
  # Perform fit and estimate eigenvalues
959
- order = 1 + int(len(samples)**.25)
959
+ order = 1 + int(len(samples)**.2)
960
960
  ff.fit(method='chebyshev', K=order, projection='sample', damp='jackson',
961
- force=True, plot=False, latex=False, save=False, reg=0.01)
961
+ force=True, plot=False, latex=False, save=False, reg=0.05)
962
962
  _, _, eigs = ff.decompress(N)
963
963
 
964
964
  if psd:
965
965
  eigs = numpy.abs(eigs)
966
+ eigs.sort()
966
967
 
967
968
  return eigs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: freealg
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Free probability for large matrices
5
5
  Keywords: leaderboard bot chat
6
6
  Platform: Linux
@@ -31,6 +31,7 @@ Requires-Dist: texplot
31
31
  Requires-Dist: matplotlib
32
32
  Requires-Dist: colorcet
33
33
  Requires-Dist: statsmodels
34
+ Requires-Dist: numba
34
35
  Provides-Extra: test
35
36
  Provides-Extra: docs
36
37
  Dynamic: classifier
@@ -88,7 +89,7 @@ smaller Wishart matrix.
88
89
  >>> A = mp.matrix(1000) # Sample a 1000 x 1000 Wishart matrix
89
90
  >>> eigs = fa.eigfree(A, 100_000) # Estimate the eigenvalues of 100000 x 100000
90
91
 
91
- For more details on how to interface with *freealg* check out the `Quick Start Guide <https://github.com/ameli/freealg/blob/main/notebooks/quick_start.ipynb>`.
92
+ For more details on how to interface with *freealg* check out the `Quick Start Guide <https://github.com/ameli/freealg/blob/main/notebooks/quick_start.ipynb>`__.
92
93
 
93
94
 
94
95
  Test
@@ -1,24 +1,24 @@
1
1
  freealg/__init__.py,sha256=YqewBd3fq4nm-L3oGcExhEDR2wtVcrtggkSGzfpDqr4,528
2
- freealg/__version__.py,sha256=nllDrH0jyChMuuYrK0CC55iTBKUNTUjejtcwxyUF2EQ,23
2
+ freealg/__version__.py,sha256=LcIlFjHZFfiF9Rd4UHoakmombOFkxIYk00I181frGBM,23
3
3
  freealg/_chebyshev.py,sha256=oDJtRCwKEHazitzVBDbfdQz1jkyfsJOJfcAfo-PNkNo,5745
4
4
  freealg/_damp.py,sha256=k2vtBtWOxQBf4qXaWu_En81lQBXbEO4QbxxWpvuVhdE,1802
5
- freealg/_decompress.py,sha256=vwKEooOmkoFnanaRpxV-3gzsKW3puOhnhD-Y5hZAf-M,4723
5
+ freealg/_decompress.py,sha256=WdKXkZ9cbrzIHEACEZyVmLNR9kMK7OQLaBFsZKUjIKQ,4723
6
6
  freealg/_jacobi.py,sha256=AT4ONSHGGDxVKE3MGMLyMR8uDFiO-e9u3x5udYfdJJk,5635
7
7
  freealg/_pade.py,sha256=yREJYSmnWaVUNRBNxjuQUqeLe_XSaGa9_VzV6HG5RkA,15164
8
8
  freealg/_plot_util.py,sha256=BOYre8FPhrxmW1VRj3I40dCjWTFqUBTInmXc3wFunKQ,19648
9
9
  freealg/_sample.py,sha256=ckC75eqv-mRP1F5BnhvsjfLTaoAzHK8bebl9bCRZYDo,2561
10
10
  freealg/_support.py,sha256=A8hUjfKnSkHm09KLcEkeEXeTieKjhH-sVPd7I3_p4VE,3100
11
11
  freealg/_util.py,sha256=PWLXcsTb0-FinGWvNiY12D-f4CHQB5bP_W3ThqfY4FY,3681
12
- freealg/freeform.py,sha256=GRlaBsSow36Dj8p0_fZOINmsutE5KcRcNbgEIKwF3s8,30416
12
+ freealg/freeform.py,sha256=OtFiLeaViEUUzxI4Ivp5twf6Pkr7hpqERFppa6C6kCA,30435
13
13
  freealg/distributions/__init__.py,sha256=t_yZyEkW_W_tSV9IvgYXtVASxD2BEdiNVXcV2ebMy8M,579
14
14
  freealg/distributions/_kesten_mckay.py,sha256=HDMjbM1AcNxlwrpYeGmRqcbP10QsLI5RCeKvjVK3tOk,19566
15
15
  freealg/distributions/_marchenko_pastur.py,sha256=th921hlEEtTbnHnRyBgT54a_e-9ZzAl9rB78O9FjorY,16688
16
16
  freealg/distributions/_meixner.py,sha256=ItE0zYG2vhyUkObxbx4bDZaJ0BHVQWPzAJGLdMz10l4,17206
17
17
  freealg/distributions/_wachter.py,sha256=lw70PT3TZlCf7mHU8IqoygXFUWB4IL57obkng0_ZGeI,16591
18
18
  freealg/distributions/_wigner.py,sha256=2ZSPjgmDr9q9qiz6jO6yhXFo4ALHfxK1f0EzolzhRNE,15565
19
- freealg-0.1.11.dist-info/licenses/AUTHORS.txt,sha256=0b67Nz4_JgIzUupHJTAZxu5QdSUM_HRM_X_w4xCb17o,30
20
- freealg-0.1.11.dist-info/licenses/LICENSE.txt,sha256=J-EEYEtxb3VVf_Bn1TYfWnpY5lMFIM15iLDDcnaDTPA,1443
21
- freealg-0.1.11.dist-info/METADATA,sha256=PpZLvIf9c5BDZ6NmH3EErea6mAMUbPp6qOoIvQeiru4,4006
22
- freealg-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- freealg-0.1.11.dist-info/top_level.txt,sha256=eR2wrgYwDdnnJ9Zf5PruPqe4kQav0GMvRsqct6y00Q8,8
24
- freealg-0.1.11.dist-info/RECORD,,
19
+ freealg-0.1.12.dist-info/licenses/AUTHORS.txt,sha256=0b67Nz4_JgIzUupHJTAZxu5QdSUM_HRM_X_w4xCb17o,30
20
+ freealg-0.1.12.dist-info/licenses/LICENSE.txt,sha256=J-EEYEtxb3VVf_Bn1TYfWnpY5lMFIM15iLDDcnaDTPA,1443
21
+ freealg-0.1.12.dist-info/METADATA,sha256=Xwep_keCRRaY_GBIsLUnZ8Opx5-I20dhXJ8us53_wAI,4029
22
+ freealg-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ freealg-0.1.12.dist-info/top_level.txt,sha256=eR2wrgYwDdnnJ9Zf5PruPqe4kQav0GMvRsqct6y00Q8,8
24
+ freealg-0.1.12.dist-info/RECORD,,