jsci.maths.vectors
Class MathVector
java.lang.Object
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). |
MathVector
public MathVector(int n)
- Constructs a mathematical vector.
- Parameters:
n
- the dimension of the vector.
norm
public abstract double norm()
- Returns the norm (magnitude).
dimension
public final int dimension()
- Returns the vector's dimension.
jHepWork 3.1 ©