Struct linxal::generate::matgen::RandomSymmetric [] [src]

pub struct RandomSymmetric<T: MG> { /* fields omitted */ }

Structure for creating symmetric matrices.

Methods

impl<T: MG> RandomSymmetric<T>
[src]

Create a new matrix generator for random semi-positive definite matrices.

Set the rank of the matrix.

The rank is capped to the size of the matrix.

Remarks

The rank is ignored when the eigenvalues / singular values are given as input.

Set the matrix to be full rank.

Remarks

The rank is ignored when the eigenvalues / singular values are given as input.

Set the upper and lower band of the matrix.

If the band is larger than the matrix, it is interpreted as a full-sized matrix.

Set the matrix to be full bandwidth.

Set the matrix to be diagonal.

Set how the entries of the matrix are packed.

Set the eigenvalues to the specified values.

When the rank of the matrix is specified as k, any values after the kth are ignored and set to zero when the matrix is generated.

Set the eigenvalues to the specified values.

Equivalent to the eigenvalues function.

Draw the eigenvalues from a uniform distribution.

Generate a matrix matching the specifications previously specified.

Generate a matrix matching the specifications, and return the eigenvalues of the generated matrix.

The returned eigenvalues include any changes made