Learn R Programming

fBasics (version 4021.93)

positiveDefinite: Positive definite matrices

Description

Checks if a matrix is positive definite and/or forces a matrix to be positive definite.

Usage

isPositiveDefinite(x)
makePositiveDefinite(x)

Arguments

x

a square numeric matrix.

Author

Korbinian Strimmer.

Details

The function isPositiveDefinite checks if a square matrix is positive definite.

The function makePositiveDefinite forces a matrix to be positive definite.

Examples

Run this code
## isPositiveDefinite - 
   # the 3x3 Pascal Matrix is positive define 
   isPositiveDefinite(pascal(3))                

Run the code above in your browser using DataLab