MatrixNorm - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

Norm

  

compute the p-norm of a Matrix or Vector

  

MatrixNorm

  

compute the p-norm of a Matrix

  

VectorNorm

  

compute the p-norm of a Vector

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

Norm(A, p, c)

MatrixNorm(A, p, c)

VectorNorm(A, p, c)

Parameters

A

-

Matrix or Vector

p

-

(optional) non-negative number, infinity, -infinity, Euclidean, or Frobenius; norm selector that is dependent on A

c

-

(optional) equation of the form conjugate=true or false; specifies if the result in the 2-norm case for Matrices uses the Hermitian transpose or the result in the p-norm case for Vectors where p is even assumes that the entries of the Vector are real and avoids extra calls to abs.

Description

• 

The Norm(A) command computes the infinity norm of A. The Norm(A,p) command computes the p-norm of A.

  

If p or c is included in the calling sequence, their value and the resulting norm depends on whether A is a Vector or a Matrix.

  

By default, Norm(A) computes the infinity-norm for A.

  

 

  

Vector Norms

• 

If V is a Vector and p is included in the calling sequence, p must be one of a non-negative number, infinity, -infinity, Frobenius, or Euclidean.

  

By default, VectorNorm(A) computes the infinity-norm for A.

  

The p-norm of a Vector V when 1p< is addVip&comma;i=1..DimensionV1p.

  

The infinity-norm of Vector V is maxseqVi&comma;i=1..DimensionV.

  

The -infinity-norm of Vector V is minseqVi&comma;i=1..DimensionV. Note that the -infinity norm is neither a norm nor a metric. The infinity norm returns the maximum absolute value, so by a convention used in some other programs, the same function, Norm, can be used to get the minimum absolute value.

  

Maple implements Vector norms for all 0p. For 0<p<1 the final pth root computation is not done ( i.e., the calculation is just addVip&comma;i=1..DimensionV. This defines a metric on R^n, but the pth root is not a norm and the form computed by VectorNorm in such cases is more useful. The limiting case of p = 0 returns the number of non-zero elements of V (this will be a floating-point number if p or any element of V is a floating-point number).

  

For Vectors, the 2-norm can also be specified as either Euclidean or Frobenius.

  

 

  

Matrix Norms

• 

If A is a Matrix and p is included in the calling sequence, p must be one of 1, 2, infinity, Frobenius, or Euclidean.

  

By default, MatrixNorm(A) computes the infinity-norm for A.

  

The p-norm of a Matrix A is maxVectorNormA·V&comma;p, where the maximum is taken over all Vectors V with VectorNormV&comma;p=1.  Maple only implements MatrixNorm(A, p) for p = 1, 2, infinity and the special case p = Frobenius (which is not actually a Matrix norm; the Matrix A is treated as a "folded up" Vector). These norms are defined as the following.

  

MatrixNormA&comma;1=maxseqVectorNormA1..−1,j&comma;1&comma;j=1..ColumnDimensionA

  

MatrixNormA&comma;=maxseqVectorNormAi,1..−1&comma;1&comma;i=1..RowDimensionA

  

MatrixNormA&comma;2=maxseqEigenvaluesA·HermitianTransposeAi&comma;i=1..RowDimensionA

  

MatrixNormA&comma;Frobenius=addaddAi,j2&comma;j=1..ColumnDimensionA&comma;i=1..RowDimensionA

  

For the 2-norm case of a Matrix, c may be included in the calling sequence to select between the transpose and the Hermitian transpose of A. The 2-norm case can also be specified by using Euclidean.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form Norm(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[Norm](..).

Examples

withLinearAlgebra&colon;

A1&comma;1&comma;0|0&comma;1&comma;1|1&comma;0&comma;1

A101−110011

(1)

NormA&comma;2

3

(2)

B10&comma;0&comma;0|0&comma;9&comma;12|2&comma;4&comma;1

B10020940121

(3)

MatrixNormB&comma;1

10

(4)

h3|4

h34

(5)

VectorScalarMultiplyh&comma;1VectorNormh&comma;Euclidean

3545

(6)

VectorNorm2&comma;0&comma;0.5

1.414213562

(7)

va&comma;b&comma;c

vabc

(8)

VectorNormv&comma;2&comma;conjugate=false

a2+b2+c2

(9)

VectorNormv&comma;2&comma;conjugate=true

a2+b2+c2

(10)

References

  

de Boor, Carl. "An Empty Exercise". ACM SIGNUM Newsletter, Vol. 25 No. 2. (1990): 2-6.

See Also

LinearAlgebra

LinearAlgebra[DotProduct]

LinearAlgebra[Normalize]

Matrix

Vector