Package xal.tools.math
Class GenericVector
- All Implemented Interfaces:
Serializable
,IArchive
Concrete implementation of vector with arbitrary length.
- Author:
- Blaz Kranjc
- See Also:
-
Field Summary
Fields inherited from class xal.tools.math.BaseVector
ATTR_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Base classes must override the clone operation in order to make deep copies of the current object.protected GenericVector
newInstance
(double[] arrVecInt) Creates a new instance of this vector type with the given Java array as the internal representation.protected GenericVector
newInstance
(int size) Creates a new, uninitialized instance of this vector type.Methods inherited from class xal.tools.math.BaseVector
assignUnity, assignZero, copyVector, embedIn, equals, getArrayCopy, getElem, getElem, getSize, getVector, hashCode, innerProd, isEquivalentTo, leftMultiply, load, minus, minusEquals, negate, negateEquals, newInstance, norm1, norm2, normInf, plus, plusEquals, print, print, println, projectOnto, rightMultiply, save, setElem, setElem, setVector, setVector, setVector, times, timesEquals, toString
-
Constructor Details
-
GenericVector
- Throws:
UnsupportedOperationException
- See Also:
-
GenericVector
- Throws:
ArrayIndexOutOfBoundsException
- See Also:
-
BaseVector#BaseVector(int, double[])
-
-
Method Details
-
clone
Description copied from class:BaseVector
Base classes must override the clone operation in order to make deep copies of the current object. This operation cannot be done without the exact type.- Specified by:
clone
in classBaseVector<GenericVector>
- See Also:
-
newInstance
Description copied from class:BaseVector
Creates a new, uninitialized instance of this vector type.- Specified by:
newInstance
in classBaseVector<GenericVector>
- Returns:
- uninitialized vector object of type
V
- See Also:
-
GenericVector#newInstance()
-
newInstance
Description copied from class:BaseVector
Creates a new instance of this vector type with the given Java array as the internal representation.- Specified by:
newInstance
in classBaseVector<GenericVector>
- Parameters:
arrVecInt
- new vector's guts- Returns:
- new instance of this vector type with the internal representation
-