API — transforms
Numerical transforms for matrix-/operator-valued free probability.
Primary API (v0.1.0)
Cauchy transforms (matrix-valued):
- :func:
cauchy_matrix_semicircle— \(G(z)\) for \(S = \sum_i A_i \otimes X_i\) - :func:
cauchy_kronecker— \(G_a(w) = E[(w - a \otimes X)^{-1}]\) for any scalar distribution (fast, \(O(n^3)\)) - :func:
cauchy_kronecker_semicircle— specialization to \(X\) semicircular - :func:
cauchy_biased_matrix_semicircle— \(G(z)\) for \(S = a_0 + \sum_i A_i \otimes X_i\) - :func:
cauchy_polynomial— \(G(z)\) for a self-adjoint polynomial \(p(X_1,\dots,X_s)\) via linearization
Scalar densities:
- :func:
matrix_semicircle_density— density of \(\sum_i A_i \otimes X_i\) - :func:
biased_matrix_semicircle_density— density of \(a_0 + \sum_i A_i \otimes X_i\) - :func:
polynomial_density— density of \(p(X_1,\dots,X_s)\)
Scalar (classical) helpers:
- :func:
semicircle_density_scalar— Wigner semicircle density - :func:
semicircle_cauchy_scalar— scalar Cauchy transform of the semicircle law
Utilities:
- :func:
subordination_kronecker— subordination function \(\omega_1(b)\) for free additive convolution - :func:
lambda_eps— regularized spectral parameter \(\Lambda_\varepsilon(z)\)
cauchy_matrix_semicircle(z, A, G0=None, tol=1e-10, maxiter=500)
Matrix-valued Cauchy transform of the matrix semicircle \(\sum_i A_i \otimes X_i\).
Solves the operator-valued semicircle equation $$ z\,G \;=\; I \;+\; \eta(G)\,G, \qquad \Im z>0, $$ by fixed-point iteration using the half-averaged map $$ G \;\mapsto\; \tfrac12\Big[\,G + (\,zI - \eta(G)\,)^{-1}\Big], $$ where \(\eta(B)=\sum_{i=1}^s A_i B A_i^\ast\).
This follows the numerical damping suggested by Helton--Rashidi Far--Speicher (IMRN 2007).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
complex
|
Spectral parameter with \(\Im z>0\). |
required |
A
|
sequence of $(n,n)$ arrays or stacked $(s,n,n)$ array
|
Kraus operators \(A_i\) defining \(\eta(B)=\sum_i A_i B A_i^\ast\). |
required |
G0
|
(n,n) array
|
Initial iterate (defaults to \(-iI\)). |
None
|
tol
|
float
|
Relative fixed-point tolerance. |
1e-10
|
maxiter
|
int
|
Maximum iterations. |
500
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray
|
Approximate solution \(G(z)\). |
Notes
The residual \(R=zG-I-\eta(G)G\) should be small at convergence.
References
- J. W. Helton, R. Rashidi Far, R. Speicher, Operator-valued Semicircular Elements, IMRN (2007).
Source code in src/free_matrix_laws/transforms.py
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
cauchy_biased_matrix_semicircle(z, a0, A, G0=None, tol=1e-12, maxiter=5000, relax=0.5, return_info=False)
Matrix-valued Cauchy transform of the biased matrix semicircle \(S = a_0 + \sum_i A_i \otimes X_i\).
Solves $$ G \;=\; (z I - a_0 - \eta(G))^{-1}, \qquad \Im z>0 , $$ via the relaxed iteration $$ G_{k+1} \;=\; (1-\text{relax})\,G_k \;+\; \text{relax}\,[\,z I - b\,\eta(G_k)\,]^{-1} b, \quad b=z(z I - a_0)^{-1}. $$
Convergence is checked via the residual $$ R(G):= (z I - a_0)\,G - I - \eta(G)\,G, $$ stopping when \(\|R(G)\|_{\mathrm{F}} \le \text{tol}\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
complex
|
Spectral parameter with \(\Im z>0\). |
required |
a0
|
(n,n) ndarray
|
Bias matrix. |
required |
A
|
sequence[(n,n)] or (s,n,n) ndarray
|
Kraus operators for \(\eta\). |
required |
G0
|
(n,n) ndarray
|
Warm start; if None, uses \((\Im z)^{-1} i\,I\). |
None
|
tol
|
float
|
Frobenius-norm tolerance on the residual. |
1e-12
|
maxiter
|
int
|
Iteration cap. |
5000
|
relax
|
float
|
Averaging parameter in \((0,1]\). |
0.5
|
return_info
|
bool
|
If True, also return a dict with residual and iterations. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
G |
(n,n) ndarray
|
|
info |
dict (only if return_info=True)
|
Keys: |
Source code in src/free_matrix_laws/transforms.py
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | |
cauchy_polynomial(z, a0, A, *, eps_reg=1e-06, block_size=1, G0=None, tol=1e-10, maxiter=10000, return_info=False)
Cauchy transform of a self-adjoint polynomial \(p(X_1,\dots,X_s)\) via linearization.
Given a self-adjoint linearization $$ L_p = a_0 + \sum_{i=1}^s A_i \otimes X_i, $$ with semicircular \(X_i\), we form $$ b_\varepsilon(z) := z\big(\Lambda_\varepsilon(z)-a_0\big)^{-1}, \qquad \eta(B) := \sum_{i=1}^s A_i\,B\,A_i^\ast, $$ where $$ \Lambda_\varepsilon(z)=\operatorname{diag} \big(z I_k,\ i\varepsilon\, I_{n-k}\big), \qquad k=\text{block_size}. $$
The iteration uses the half-averaged update $$ G_{new} = \frac12\Big[G + \big(zI - b_\varepsilon(z)\,\eta(G)\big)^{-1} b_\varepsilon(z)\Big], $$ and stops when \(\|G_{new}-G\|_F \le \text{tol}\,\|G\|_F\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
complex
|
Spectral parameter with \(\Im z>0\) (typically \(z=x+i\,\varepsilon\)). |
required |
a0
|
(n,n) array
|
The bias / constant term of the linearization. |
required |
A
|
sequence of (n,n) arrays or stacked array (s,n,n)
|
Coefficients \(A_i\) defining \(\eta(B)=\sum_i A_i B A_i^\ast\). |
required |
eps_reg
|
float
|
Regularization parameter in \(\Lambda_\varepsilon(z)\) (lower block). |
1e-6
|
block_size
|
int
|
Size \(k\) of the distinguished top-left block. |
1
|
G0
|
(n,n) array
|
Initial iterate. If None, uses \(G_0 = (1/z)I\). |
None
|
tol
|
float
|
Relative tolerance. |
1e-10
|
maxiter
|
int
|
Maximum number of iterations. |
10000
|
return_info
|
bool
|
If True, also return a dict with diagnostics. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
G |
(n,n) array
|
Approximation to the fixed point \(G(z,b_\varepsilon(z))\). |
info |
dict(optional)
|
Keys: 'iters', 'last_diff'. |
Notes
After computing \(G(z,b_\varepsilon(z))\), the scalar Cauchy transform of \(p\) is obtained from the distinguished corner via $$ m_p(z) \approx \frac{1}{k}\,\mathrm{tr}\, \big(G(z,b_\varepsilon(z))\big)_{11}, $$ with \(k=\text{block\_size}\) and \((\cdot)_{11}\) the top-left \(k\times k\) block.
Source code in src/free_matrix_laws/transforms.py
631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 | |
matrix_semicircle_density(x, A, eps=0.01, G0=None, tol=1e-10, maxiter=10000, a0=None)
Scalar density of the matrix semicircle \(\sum_i A_i \otimes X_i\) (optionally with bias \(a_0\)).
Unbiased case (\(a_0\) is None): compute \(G(z)\) for \(z=x+i\varepsilon\) from
$$ z\,G \;=\; I \;+\; \eta(G)\,G, \qquad \eta(B)=\sum_{i=1}^s A_i B A_i^\ast, $$
then return the scalar density
$$ f(x) \;=\; -\frac{1}{\pi}\,\Im!\left(\frac{1}{n}\,
\mathrm{tr}\,G(x+i\varepsilon)\right). $$
Biased case (\(a_0 \ne 0\)): compute \(G_{a_0+X}(z)\) via
:func:cauchy_biased_matrix_semicircle and apply the same inversion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
float
|
Real evaluation point. |
required |
A
|
sequence of $(n,n)$ arrays or stacked array $(s,n,n)$
|
Kraus operators \(A_i\). |
required |
eps
|
float
|
Imaginary offset \(\varepsilon>0\) for \(z=x+i\varepsilon\). |
1e-2
|
G0
|
(n,n) array
|
Initial iterate (passed to the solver). |
None
|
tol
|
float
|
Relative fixed-point tolerance. |
1e-10
|
maxiter
|
int
|
Maximum iterations. |
10000
|
a0
|
(n,n) array or ``None``
|
Bias matrix. If provided, computes density for \(a_0 + \sum_i A_i \otimes X_i\). |
None
|
Returns:
| Type | Description |
|---|---|
float
|
Approximation to \(f(x)\). |
Source code in src/free_matrix_laws/transforms.py
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 | |
biased_matrix_semicircle_density(x, a0, A, eps=0.01, G0=None, tol=1e-10, maxiter=10000)
Scalar density of the biased matrix semicircle \(S = a_0 + \sum_i A_i \otimes X_i\).
Convenience wrapper: $$ f_{a_0}(x) \;=\; -\frac{1}{\pi}\,\Im!\left(\frac{1}{n}\, \mathrm{tr}\,G_{a_0+X}(x+i\varepsilon)\right). $$
Calls matrix_semicircle_density(x, A, eps, G0, tol, maxiter, a0=a0).
Source code in src/free_matrix_laws/transforms.py
814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 | |
polynomial_density(x, a0, A, *, eps=0.01, eps_reg=None, block_size=1, G0=None, tol=1e-10, maxiter=10000, return_info=False)
Scalar density of a self-adjoint polynomial \(p(X_1,\dots,X_s)\) of free semicircular variables, via self-adjoint linearization.
Evaluates at \(z=x+i\,\varepsilon\) and computes the regularized fixed point
\(G(z,b_\varepsilon(z))\) via :func:cauchy_polynomial.
The scalar Cauchy transform is extracted from the distinguished corner: $$ m_p(z) \approx \frac{1}{k}\,\mathrm{tr}\, \big(G(z,b_\varepsilon(z))\big)_{11}, $$ and the density is approximated by $$ f(x) \approx -\frac{1}{\pi}\,\Im\, m_p(x+i\varepsilon). $$
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
float
|
Real evaluation point. |
required |
a0
|
(n,n) array
|
Constant term of the self-adjoint linearization. |
required |
A
|
sequence of (n,n) arrays or stacked array (s,n,n)
|
Coefficients defining \(\eta(B)=\sum_i A_i B A_i^\ast\). |
required |
eps
|
float
|
Imaginary offset in \(z=x+i\,\varepsilon\). |
1e-2
|
eps_reg
|
float
|
Regularization in \(\Lambda_\varepsilon(z)\). If None, uses eps. |
None
|
block_size
|
int
|
Size \(k\) of the distinguished top-left block. |
1
|
G0
|
(n,n) array
|
Warm start for the solver. |
None
|
tol
|
float
|
Relative tolerance. |
1e-10
|
maxiter
|
int
|
Maximum iterations. |
10000
|
return_info
|
bool
|
If True, also return solver diagnostics. |
False
|
Returns:
| Type | Description |
|---|---|
float
|
Approximation to the density \(f(x)\). |
Source code in src/free_matrix_laws/transforms.py
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 | |
semicircle_density_scalar(x, c=1.0)
Classical (scalar) Wigner semicircle density with variance \(c>0\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
float or array_like
|
|
required |
c
|
float
|
Variance parameter (\(c>0\), so radius is \(2\sqrt{c}\)). |
1.0
|
Returns:
| Type | Description |
|---|---|
float or ndarray
|
|
Source code in src/free_matrix_laws/transforms.py
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 | |
semicircle_cauchy_scalar(z, c=1.0)
Scalar Cauchy (Stieltjes) transform of the Wigner semicircle law with variance \(c>0\).
The square-root branch is chosen so that \(\Im z>0 \Rightarrow \Im G(z)<0\).
Source code in src/free_matrix_laws/transforms.py
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 | |
cauchy_kronecker(w, a, cauchy_scalar=None, eps=1e-08)
Cauchy transform of a Kronecker-product random variable \(a \otimes X\).
Computes $$ G_a(w) \;=\; E!\big[(w - a \otimes X)^{-1}\big], $$ where \(X\) is a scalar random variable with known Cauchy (Stieltjes) transform \(G_X(z)\), and \(a\) is an \(n \times n\) deterministic matrix.
Method. Regularize \(a\) to \(\tilde a = a + i\varepsilon I\) so that it is
invertible, then diagonalize
\(\tilde a^{-1} w = V\,\mathrm{diag}(\mu_1,\dots,\mu_n)\,V^{-1}\).
The expectation reduces to
$$
G_a(w) \;=\; V\,\mathrm{diag}!\big(G_X(\mu_1),\dots,G_X(\mu_n)\big)\,
V^{-1}\,\tilde a^{-1},
$$
where \(G_X\) is the scalar Cauchy transform passed as cauchy_scalar.
This is \(O(n^3)\) (one eigendecomposition + two solves) regardless of the underlying distribution of \(X\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
w
|
(n, n) ndarray
|
Spectral parameter matrix (should have \(\Im w \ne 0\) in some sense, e.g. \(w = (x + i\varepsilon)\,I\)). |
required |
a
|
(n, n) ndarray
|
The deterministic matrix in \(a \otimes X\). |
required |
cauchy_scalar
|
callable
|
Scalar Cauchy transform \(G_X(z)\), accepting a complex array and
returning a complex array of the same shape.
Default: :func: |
None
|
eps
|
float
|
Regularization: replaces \(a\) by \(a + i\varepsilon I\) to handle singular or near-singular \(a\). |
1e-8
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray (complex)
|
The matrix-valued Cauchy transform \(G_a(w)\). |
See Also
cauchy_kronecker_semicircle :
Convenience alias with cauchy_scalar=semicircle_cauchy_scalar.
h_kronecker :
Subordination h-function for the same model.
cauchy_matrix_semicircle :
General case \(\sum_i A_i \otimes X_i\) (fixed-point iteration).
Examples:
>>> import numpy as np
>>> from free_matrix_laws import cauchy_kronecker, semicircle_cauchy_scalar
>>> w = (0.5 + 0.01j) * np.eye(2)
>>> a = np.array([[1.0, 0.2], [0.2, 0.8]])
>>> G = cauchy_kronecker(w, a) # semicircle by default
>>> G.shape
(2, 2)
Use a custom scalar Cauchy transform (e.g. Marchenko–Pastur):
>>> def cauchy_mp(z, gamma=1.0):
... # Marchenko-Pastur Cauchy transform
... disc = np.sqrt((z - (1+np.sqrt(gamma))**2) *
... (z - (1-np.sqrt(gamma))**2))
... disc = np.where(disc.imag * z.imag < 0, -disc, disc)
... return (z - gamma + 1 - disc) / (2 * gamma * z)
>>> G_mp = cauchy_kronecker(w, a, cauchy_scalar=cauchy_mp)
Source code in src/free_matrix_laws/transforms.py
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 | |
h_kronecker(w, a, cauchy_scalar=None, eps=1e-08)
Subordination h-function for a Kronecker-product random variable \(a \otimes X\).
$$
h_a(w) \;=\; G_a(w)^{-1} \;-\; w,
$$
where \(G_a(w)\) is computed by :func:cauchy_kronecker.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
w
|
(n, n) ndarray
|
Spectral parameter matrix. |
required |
a
|
(n, n) ndarray
|
Deterministic matrix in \(a \otimes X\). |
required |
cauchy_scalar
|
callable
|
Scalar Cauchy transform \(G_X(z)\).
Default: :func: |
None
|
eps
|
float
|
Regularization parameter. |
1e-8
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray (complex)
|
|
See Also
h_kronecker_semicircle : Convenience alias for the semicircle case. cauchy_kronecker : The underlying Cauchy transform.
Source code in src/free_matrix_laws/transforms.py
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
cauchy_kronecker_semicircle(w, a, eps=1e-08)
Cauchy transform of the Kronecker-product semicircle \(a \otimes X\).
Convenience alias for
cauchy_kronecker(w, a, cauchy_scalar=semicircle_cauchy_scalar, eps=eps).
See :func:cauchy_kronecker for full documentation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
w
|
(n, n) ndarray
|
Spectral parameter matrix. |
required |
a
|
(n, n) ndarray
|
Deterministic matrix in \(a \otimes X\). |
required |
eps
|
float
|
Regularization parameter. |
1e-8
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray (complex)
|
|
Source code in src/free_matrix_laws/transforms.py
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 | |
h_kronecker_semicircle(w, a, eps=1e-08)
Subordination h-function for the Kronecker-product semicircle \(a \otimes X\).
Convenience alias for
h_kronecker(w, a, cauchy_scalar=semicircle_cauchy_scalar, eps=eps).
See :func:h_kronecker for full documentation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
w
|
(n, n) ndarray
|
Spectral parameter matrix. |
required |
a
|
(n, n) ndarray
|
Deterministic matrix in \(a \otimes X\). |
required |
eps
|
float
|
Regularization parameter. |
1e-8
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray (complex)
|
|
Source code in src/free_matrix_laws/transforms.py
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | |
subordination_kronecker(b, a1, a2, cauchy_scalar_x=None, cauchy_scalar_y=None, eps=0.0001, tol=1e-08, maxiter=10000, return_info=False)
Subordination function \(\omega_1(b)\) for the free additive convolution of two Kronecker-product random variables \(a_1 \otimes X\) and \(a_2 \otimes Y\).
Computes the fixed point of the map
$$
w \;\mapsto\; h_Y!\big(h_X(w) + b\big) + b,
$$
where \(h_X(w) = G_{a_1 \otimes X}(w)^{-1} - w\) and
\(h_Y(w) = G_{a_2 \otimes Y}(w)^{-1} - w\) are the subordination h-functions
computed via :func:h_kronecker.
After convergence, the Cauchy transform of the sum \(p(X,Y)\) (as encoded by the linearization \(b = \Lambda_\varepsilon(z) - a_0\)) can be recovered as $$ G_{X+Y}(b) \;=\; G_{a_1 \otimes X}!\big(\omega_1(b)\big). $$
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b
|
(n, n) ndarray
|
The "driving matrix," typically \(b = \Lambda_\varepsilon(z) - a_0\) for a linearization \(L_p = a_0 + a_1 \otimes X + a_2 \otimes Y\). |
required |
a1
|
(n, n) ndarray
|
Deterministic matrix for the first variable (\(a_1 \otimes X\)). |
required |
a2
|
(n, n) ndarray
|
Deterministic matrix for the second variable (\(a_2 \otimes Y\)). |
required |
cauchy_scalar_x
|
callable
|
Scalar Cauchy transform \(G_X(z)\) for the first variable.
Default: :func: |
None
|
cauchy_scalar_y
|
callable
|
Scalar Cauchy transform \(G_Y(z)\) for the second variable.
Default: :func: |
None
|
eps
|
float
|
Regularization for the Kronecker h-functions. Larger than the
default in :func: |
1e-4
|
tol
|
float
|
Convergence tolerance (Frobenius norm of \(w_{k+1} - w_k\)).
Note: with |
1e-8
|
maxiter
|
int
|
Maximum iterations. |
10000
|
return_info
|
bool
|
If True, also return a dict with diagnostics. |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
omega |
(n, n) ndarray (complex)
|
The subordination function \(\omega_1(b)\). |
info |
dict (only if return_info=True)
|
Keys: |
See Also
h_kronecker : The h-function used at each step. cauchy_kronecker : To recover \(G_{X+Y}(b)\) from \(\omega_1(b)\).
Examples:
Anticommutator of two free semicircles via subordination:
>>> import numpy as np
>>> from free_matrix_laws import (
... subordination_kronecker, cauchy_kronecker_semicircle, lambda_eps
... )
>>> A0 = np.array([[0, 0, 0], [0, 0, -1], [0, -1, 0]])
>>> A1 = np.array([[0, 1, 0], [1, 0, 0], [0, 0, 0]])
>>> A2 = np.array([[0, 0, 1], [0, 0, 0], [1, 0, 0]])
>>> z = 0.5 + 0.01j
>>> b = lambda_eps(z, 3) - A0
>>> omega = subordination_kronecker(b, A1, A2)
>>> G = cauchy_kronecker_semicircle(omega, A1)
>>> density = -G[0, 0].imag / np.pi
Anticommutator with different distributions (e.g. free Poisson):
>>> def cauchy_poisson(z, lam=4.0):
... a = (1 - np.sqrt(lam))**2
... b = (1 + np.sqrt(lam))**2
... disc = np.sqrt((z - a) * (z - b))
... disc = np.where(disc.imag * z.imag < 0, -disc, disc)
... return (1 + z - lam - disc) / (2 * z)
>>> omega = subordination_kronecker(b, A1, A2,
... cauchy_scalar_x=cauchy_poisson, cauchy_scalar_y=cauchy_poisson)
References
- S. Belinschi, T. Mai, R. Speicher, Analytic subordination theory of operator-valued free additive convolution and the solution of a general random matrix problem, J. reine angew. Math. 732 (2017), 21–53.
Source code in src/free_matrix_laws/transforms.py
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 | |
lambda_eps(z, n, eps=1e-06, block_size=1)
Regularized spectral parameter for polynomial linearizations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
complex
|
Spectral parameter. |
required |
n
|
int
|
Matrix size. |
required |
eps
|
float
|
Regularization \(\varepsilon > 0\) on the lower block. |
``1e-6``
|
block_size
|
int
|
Size \(k\) of the top-left block carrying \(z\). |
``1``
|
Returns:
| Type | Description |
|---|---|
(n, n) ndarray, complex
|
|
Source code in src/free_matrix_laws/transforms.py
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 | |