norm_2_space< V >

Description

The 2-norm is defined for the Vector and Matrix concepts. The value_type must be a model of the Field concept, so that we have vector spaces.

For a Vector the 2-norm is defined as

norm_2( m ) = ( Σi |vi|2 )1/2

For a Matrix the 2-norm is defined as

norm_2( v ) = largest singular value of v

Example

Definition

Template parameters

Parameter Description Default
V VectorSpace type  

Model of

BanachSpace

Type requirements

V is a model of the Vector or Matrix concepts.

Public base classes

Members

All members of V with, in addition,
Member Where defined Comment
real_type BanachSpace
norm() BanachSpace Returns the 2-norm.