Learn R Programming

distr (version 2.9.5)

PosDefSymmMatrix: Generating functions for PosSemDefSymmMatrix-class resp. PosDefSymmMatrix-class

Description

Generates an object of class "PosSemDefSymmMatrix" resp. of class "PosDefSymmMatrix".

Usage

PosSemDefSymmMatrix(mat)
       PosDefSymmMatrix(mat)

Value

Object of class "PosSemDefSymmMatrix" resp. of class "PosDefSymmMatrix"

Arguments

mat

A numeric positive-[semi-]definite, symmetric matrix with finite entries.

Author

Matthias Kohl Matthias.Kohl@stamats.de, Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de

Details

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

See Also

PosDefSymmMatrix-class

Examples

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

Run the code above in your browser using DataLab