Norm Class Reference

Inheritance diagram for Norm:

Inheritance graph
[legend]

List of all members.


Detailed Description

Vector norm.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date

Serialization

This class supports serialization through the Boost.Serialization library.

Definition at line 23 of file Norm.hpp.


Public Member Functions

virtual ~Norm ()
 Destructor.
virtual double operator() (const vector &x) const =0
 Evaluate the norm.
virtual vector sample (const unsigned int N) const =0
 Generate a random unit vector from a uniform distribution over the unit vectors in the normed vector space.

Constructor & Destructor Documentation

~Norm (  )  [virtual]

Destructor.

Definition at line 5 of file Norm.cpp.


Member Function Documentation

virtual double operator() ( const vector x  )  const [pure virtual]

Evaluate the norm.

Parameters:
x $\mathbf{x}$; a vector.
Returns:
$\|\mathbf{x}\|$; the norm of the vector.

Implemented in Almost2Norm, and PNorm.

virtual vector sample ( const unsigned int  N  )  const [pure virtual]

Generate a random unit vector from a uniform distribution over the unit vectors in the normed vector space.

Parameters:
N Dimensionality of the normed vector space.
Returns:
Random unit vector of length N.

Implemented in Almost2Norm, PNorm, PNorm, and PNorm.


Generated on Wed Dec 17 15:11:58 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3