Learn R Programming

BayesMRA (version 1.0.0)

is_sympd_matrix: Check if a symmetric positive definite numeric matrix of dimension \(n \times n\)

Description

this function checks if the input is a symmetric positive definite matrix

Usage

is_sympd_matrix(x, n)

Arguments

x

is the input

n

is the input matrix dimension (assuming a square matrix)