linalg(deprecated)/trace - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

linalg(deprecated)

  

trace

  

the trace of a matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

trace(A)

Parameters

A

-

square matrix

Description

• 

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

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The function trace(A) computes the trace of the matrix A. The trace of a matrix A is defined to be the sum of the diagonal elements of A.

• 

The command with(linalg,trace) allows the use of the abbreviated form of this command.

Examples

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

withlinalg:

tracearray1,2,1,4

5

(1)

Amatrix3,3,a,b,c,d,e,f,g,h,i

Aabcdefghi

(2)

traceA

a+e+i

(3)

See Also

LinearAlgebra

LinearAlgebra[Trace]

Trace