linalg(deprecated)/definite - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/definite

linalg(deprecated)

  

definite

  

test for positive or negative definite matrices

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

definite(A, kind)

Parameters

A

-

square symmetric matrix

kind

-

one of the following symbols: 'positive_def', 'positive_semidef', 'negative_def', or 'negative_semidef'

Description

• 

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.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[IsDefinite], instead.

> 

with⁡linalg:

> 

A≔matrix⁡2,2,2,1,1,3

A≔2113

(1)
> 

definite⁡A,positive_def

true

(2)
> 

B≔array⁡1..2,1..2,symmetric:

> 

definite⁡B,negative_semidef

B1,1≤0and−B1,1⁢B2,2+B1,22≤0andB2,2≤0

(3)

See Also

LinearAlgebra