Learn R Programming

ROptEst (version 0.5.0)

PosDefSymmMatrix: Generating function for PosDefSymmMatrix-class

Description

Generates an object of class "PosDefSymmMatrix".

Usage

PosDefSymmMatrix(mat)

Arguments

mat
A numeric positive-definite, symmetric matrix with finite entries.

Value

  • Object of class "PosDefSymmMatrix"

concept

  • positive-definite matrix
  • symmetric matrix

Details

If mat is no matrix, as.matrix is applied.

See Also

PosDefSymmMatrix-class

Examples

Run this code
PosDefSymmMatrix(1)
PosDefSymmMatrix(diag(2))

## The function is currently defined as
function(mat){ 
    if(!is.matrix(mat)) mat <- as.matrix(mat)
    new("PosDefSymmMatrix", mat)
}

Run the code above in your browser using DataLab