Package xal.tools.math.r6
Class R6
- All Implemented Interfaces:
Serializable
,IArchive
Implements a 6-dimensional vector of real numbers.
- Since:
- Oct 15, 2013
- Author:
- Christopher K. Allen
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
ClassR3x3.IND
is an enumeration of the matrix indices for theR3x3
class. -
Field Summary
FieldsFields inherited from class xal.tools.math.BaseVector
ATTR_DATA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a deep copy of this vector.protected R6
newInstance
(double[] arrVecInt) Creates a new instance of this vector type with the given Java array as the internal representation.protected R6
newInstance
(int size) Handles object creation required by the base class.static R6
newZero()
Create a new instance of a zero vector.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
-
Field Details
-
INT_SIZE
public static final int INT_SIZEnumber of dimensions (DIM=3)- See Also:
-
-
Constructor Details
-
R6
Constructor forR6
.- Throws:
UnsupportedOperationException
- Since:
- Oct 15, 2013
-
R6
Initializing constructor for bases class
R6
. Sets the entire matrix to the values given in the Java primitive type double array. The argument itself remains unchanged.The dimensions of the given Java double array must be consistent with the size of the matrix. Thus, if the arguments are inconsistent, an exception is thrown.
- Parameters:
arrVals
- Java primitive array containing new vector values- Throws:
IllegalArgumentException
- the argument must have the same dimensions as this matrix- Since:
- Oct 16, 2013
-
R6
Copy constructor forR6
. Creates a cloned copy of the given parent object.- Parameters:
matParent
- template object for which the deep copy is performed- Since:
- Jul 3, 2014
-
-
Method Details
-
newZero
Create a new instance of a zero vector.- Returns:
- zero vector
- Since:
- Oct 18, 2013
-
clone
Creates and returns a deep copy of this vector.- Specified by:
clone
in classBaseVector<R6>
- Since:
- Jul 3, 2014
- See Also:
-
newInstance
Handles object creation required by the base class.- Specified by:
newInstance
in classBaseVector<R6>
- Returns:
- uninitialized vector object of type
V
- Since:
- Jun 17, 2014
- See Also:
-
xal.tools.math.BaseVector#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<R6>
- Parameters:
arrVecInt
- new vector's guts- Returns:
- new instance of this vector type with the internal representation
- Since:
- Jul 24, 2015 by Christopher K. Allen
- See Also:
-