.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_wishart_ensemble.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_wishart_ensemble.py: Wishart Ensemble ================= Defines Wishart Ensemble random matrices .. GENERATED FROM PYTHON SOURCE LINES 7-13 .. code-block:: Python # Author: Alejandro Santorum Varela # License: BSD 3-Clause from skrmt.ensemble import WishartEnsemble .. GENERATED FROM PYTHON SOURCE LINES 14-16 Wishart Ensemble contains random matrices formed by the multiplication of two random matrices whose entries are gaussian distributed. .. GENERATED FROM PYTHON SOURCE LINES 18-25 Wishart Real Ensemble (WRE) --------------------------- Random matrices of WRE are formed by multiplying a random real standard gaussian matrix of size :math:`p \times n` by its transpose. They are also known as 1-Laguerre random matrices (beta = 1). .. GENERATED FROM PYTHON SOURCE LINES 27-29 A random matrix of Wishart Real Ensemble can be sampled using scikit-rmt with the following code. .. GENERATED FROM PYTHON SOURCE LINES 29-33 .. code-block:: Python wre = WishartEnsemble(beta=1, p=3, n=5) print(wre.matrix) .. rst-class:: sphx-glr-script-out .. code-block:: none [[ 0.1880697 -0.35862653 1.03459692] [-0.35862653 3.20493239 -2.39821925] [ 1.03459692 -2.39821925 9.20876718]] .. GENERATED FROM PYTHON SOURCE LINES 34-41 Wishart Complex Ensemble (WCE) ------------------------------ Random matrices of WCE are formed by multiplying a random complex standard gaussian matrix of size :math:`p \times n` by its transpose. They are also known as 2-Laguerre random matrices (beta = 2). .. GENERATED FROM PYTHON SOURCE LINES 43-45 A random matrix of Wishart Complex Ensemble can be sampled using scikit-rmt with the following code. .. GENERATED FROM PYTHON SOURCE LINES 45-49 .. code-block:: Python wce = WishartEnsemble(beta=2, p=3, n=5) print(wce.matrix) .. rst-class:: sphx-glr-script-out .. code-block:: none [[ 6.63028332-8.11359534e-17j -1.58979108-1.45590169e+00j 2.36308247+2.44656972e-01j] [-1.58979108+1.45590169e+00j 4.17757502-9.75641610e-18j -0.25390686-1.84462068e+00j] [ 2.36308247-2.44656972e-01j -0.25390686+1.84462068e+00j 16.50688179-2.82917880e-17j]] .. GENERATED FROM PYTHON SOURCE LINES 50-60 Wishart Quaternion Ensemble (WQE) --------------------------------- Random matrices of WQE are formed by sampling two random complex standard guassian matrices (:math:`\mathbf{X}` and :math:`\mathbf{Y}`), stacking them to create matrix :math:`\mathbf{A} = (\mathbf{X}\ \mathbf{Y}; -\mathbf{Y}^*\ \mathbf{X}^*)`. Finally matrix :math:`\mathbf{A}` is multiplied by its transpose to generate a matrix WQE randon matrix. They are also known as 4-Laguerre random matrices (beta = 4). .. GENERATED FROM PYTHON SOURCE LINES 62-64 A random matrix of Wishart Quaternion Ensemble can be sampled using scikit-rmt with the following code. .. GENERATED FROM PYTHON SOURCE LINES 64-66 .. code-block:: Python wqe = WishartEnsemble(beta=4, p=2, n=5) print(wqe.matrix) .. rst-class:: sphx-glr-script-out .. code-block:: none [[ 2.09928152e+01+0.00000000e+00j -1.14119231e+00-2.07285276e+00j 2.92224765e-17-5.55111512e-17j -2.83429610e+00-4.98448250e+00j] [-1.14119231e+00+2.07285276e+00j 2.20266455e+01+0.00000000e+00j 2.83429610e+00+4.98448250e+00j 2.98442182e-16+3.88578059e-16j] [ 2.92224765e-17+5.55111512e-17j 2.83429610e+00-4.98448250e+00j 2.09928152e+01+0.00000000e+00j -1.14119231e+00+2.07285276e+00j] [-2.83429610e+00+4.98448250e+00j 2.98442182e-16-3.88578059e-16j -1.14119231e+00-2.07285276e+00j 2.20266455e+01+0.00000000e+00j]] .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.004 seconds) .. _sphx_glr_download_auto_examples_plot_wishart_ensemble.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_wishart_ensemble.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_wishart_ensemble.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_wishart_ensemble.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_