View source: R/is_sym_pos_def.R
is_sym_pos_def | R Documentation |
Checks a matrix to determine if it is symmetric positive-definite.
is_sym_pos_def(x)
x |
A numeric matrix which should be checked to see if it is symmetric positive-definite. |
TRUE if the supplied matrix is symmetric positive-definite, FALSE otherwise.
is_sym_pos_def(matrix(c(2.51, 2.01, 2.01, 1.74), 2, 2)) # => TRUE is_sym_pos_def(matrix(c(1, 1, 1, 1), 2, 2)) # => FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.