linalg(deprecated)/definite - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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.

withlinalg:

Amatrix2,2,2,1,1,3

A2113

(1)

definiteA,positive_def

true

(2)

Barray1..2,1..2,symmetric:

definiteB,negative_semidef

B1,10andB1,1B2,2+B1,220andB2,20

(3)

See Also

LinearAlgebra