This simulation uses WebAssembly
and the Eigen
library to compute eigenvalues
of an N×N random matrix whose entries are drawn from one of the following
distributions: uniform, exponential, Cauchy, Bernoulli, semicircle, each normalized
to have mean 0 and variance (or nominal scale) 1/sqrt(N)
.
Select the distribution below, choose a matrix size, and hit "Generate & Plot Eigenvalues" to see
the resulting spectrum, top eigenvalues, a heatmap of the matrix, etc.
Link to code
(This simulation is interactive, written in JavaScript, see the source code of this page at the link)
Link to code
(C++ code for the simulation)