Learn R Programming

futile.matrix (version 1.2.2)

rmatrix: Operate on random matrices

Description

Functions for generating random matrices. Also create ensembles of random matrices for analysis.

Usage

rmatrix(...) rcomp(...) ct(...) hermitian(...) symmetric(...) eigenvalues(...) max_eigen(...)

Arguments

...
Function arguments. See details for info.

Value

'rmatrix' returns a random matrix based on the specified model.'eigenvalues' returns a vector of the eigenvalues.

Details

rmatrix(model)

'rmatrix' generates a random matrix. The model argument must be of type RandomMatrixModel. Numerous sub-types (e.g. WignerModel, WishartModel) are supported generating the appropriate type of random matrix.

'rcomp' generates a random complex number

'eigenvalues' is a convenience function that returns matrix eigenvalues.

'max_eigen' operates on an Ensemble and returns the maximum eigenvalue for each matrix in the ensemble.

'hermitian' and 'symmetric' are convenience functions to generate these types of random matrices. Not fully implemented.

Examples

Run this code
  model <- WignerModel(10)
  m <- rmatrix(model)

  e <- Ensemble(20, model)
  hist(max_eigen(e), freq=FALSE)

Run the code above in your browser using DataLab