jsci.maths.vectors
Class MathVector

java.lang.Object
  extended by jsci.maths.vectors.MathVector
All Implemented Interfaces:
Serializable, Module.Member, AbelianGroup.Member, Member
Direct Known Subclasses:
AbstractComplexVector, AbstractDoubleVector, AbstractIntegerVector, BraVector, KetVector

public abstract class MathVector
extends Object
implements Module.Member

The MathVector superclass provides an abstract encapsulation for vectors.

See Also:
Serialized Form

Constructor Summary
MathVector(int n)
          Constructs a mathematical vector.
 
Method Summary
 int dimension()
          Returns the vector's dimension.
abstract  double norm()
          Returns the norm (magnitude).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jsci.maths.algebras.Module.Member
scalarMultiply
 
Methods inherited from interface jsci.maths.groups.AbelianGroup.Member
add, negate, subtract
 
Methods inherited from interface jsci.maths.Member
getSet
 

Constructor Detail

MathVector

public MathVector(int n)
Constructs a mathematical vector.

Parameters:
n - the dimension of the vector.
Method Detail

norm

public abstract double norm()
Returns the norm (magnitude).


dimension

public final int dimension()
Returns the vector's dimension.



jHepWork 3.1 ©