Class R6

All Implemented Interfaces:
Serializable, IArchive

public class R6 extends BaseVector<R6>
Implements a 6-dimensional vector of real numbers.
Since:
Oct 15, 2013
Author:
Christopher K. Allen
See Also:
  • Field Details

    • INT_SIZE

      public static final int INT_SIZE
      number of dimensions (DIM=3)
      See Also:
  • Constructor Details

    • R6

      public R6() throws UnsupportedOperationException
      Constructor for R6.
      Throws:
      UnsupportedOperationException
      Since:
      Oct 15, 2013
    • R6

      public R6(double[] arrVals) throws IllegalArgumentException

      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

      public R6(R6 matParent)
      Copy constructor for R6. 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

      public static R6 newZero()
      Create a new instance of a zero vector.
      Returns:
      zero vector
      Since:
      Oct 18, 2013
    • clone

      public R6 clone()
      Creates and returns a deep copy of this vector.
      Specified by:
      clone in class BaseVector<R6>
      Since:
      Jul 3, 2014
      See Also:
    • newInstance

      protected R6 newInstance(int size)
      Handles object creation required by the base class.
      Specified by:
      newInstance in class BaseVector<R6>
      Returns:
      uninitialized vector object of type V
      Since:
      Jun 17, 2014
      See Also:
      • xal.tools.math.BaseVector#newInstance()
    • newInstance

      protected R6 newInstance(double[] arrVecInt)
      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 class BaseVector<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: