linalg(deprecated)
definite
test for positive or negative definite matrices
Calling Sequence
Parameters
Description
Examples
definite(A, kind)
A
-
square symmetric matrix
kind
one of the following symbols: 'positive_def', 'positive_semidef', 'negative_def', or 'negative_semidef'
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[IsDefinite], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
For numerical matrices, definite returns true if the matrix has the property specified by the parameter kind. The properties are positive definite, positive semidefinite, negative definite, or negative semidefinite.
For matrices with non-numerical entries, definite returns a conjunction of Boolean expressions, all of which must be true if the matrix is to have the property specified by the parameter kind.
The command with(linalg,definite) allows the use of the abbreviated form of this command.
with⁡linalg:
A≔matrix⁡2,2,2,1,1,3
A≔2113
definite⁡A,positive_def
true
B≔array⁡1..2,1..2,symmetric:
definite⁡B,negative_semidef
B1,1≤0and−B1,1⁢B2,2+B1,22≤0andB2,2≤0
See Also
LinearAlgebra
Download Help Document