edu.buffalo.fs7.mathlib
Class Norm

java.lang.Object
  |
  +--edu.buffalo.fs7.mathlib.MathObject
        |
        +--edu.buffalo.fs7.mathlib.MathMap
              |
              +--edu.buffalo.fs7.mathlib.Norm
All Implemented Interfaces:
java.lang.Cloneable

public class Norm
extends MathMap

Class representing a norm map. For vectors it is the L_2 norm, for matrices it is the maximums norm.

See Also:
ExpMap

Fields inherited from class edu.buffalo.fs7.mathlib.MathObject
mathlib
 
Constructor Summary
Norm()
          creates a norm map
 
Method Summary
 MathObject apply(MathObject o)
          calculates the norm of a MathObeject.
 java.lang.String toString()
          returns string representation
 
Methods inherited from class edu.buffalo.fs7.mathlib.MathObject
clone, toParseableString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Norm

public Norm()
creates a norm map
Method Detail

apply

public MathObject apply(MathObject o)
calculates the norm of a MathObeject. Valid arguments are: vectors, brakets, matrices.
Overrides:
apply in class MathMap
Returns:
real number in complex form

toString

public java.lang.String toString()
returns string representation
Overrides:
toString in class MathObject
Following copied from class: edu.buffalo.fs7.mathlib.MathObject
See Also:
MathObject.toParseableString()