Class QuadrupoleMatrix

All Implemented Interfaces:
Cloneable

public final class QuadrupoleMatrix extends TransferMatrix

QuadrupoleMatrix class.

Author:
igor@scictrl.com
  • Constructor Details

    • QuadrupoleMatrix

      public QuadrupoleMatrix(double newLength, double newK)
      DriftMatrix constructor comment.
      Parameters:
      newLength - a double
      newK - a double
  • Method Details

    • canJoin

      public boolean canJoin(DoubleMatrix matrix)
      Test if can be joined with this matrix.
      Overrides:
      canJoin in class DoubleMatrix
      Parameters:
      matrix - DoubleMatrix
      Returns:
      boolean
    • getK

      public double getK()

      Getter for the field k.

      Returns:
      double
    • join

      public DoubleMatrix join(DoubleMatrix matrix)
      Multiplies matrix from right with this matrix and stores result in this matrix. Return Matrix is stih matrix. Multiplies matrix from right with this matrix and stores result in this matrix. Return Matrix is stih matrix.
      Overrides:
      join in class DoubleMatrix
      Parameters:
      matrix - DoubleMatrix
      Returns:
      DoubleMatrix this matrix =matrix times this matrix
    • multiplay

      public TransferMatrix multiplay(TransferMatrix matrix)

      multiplay.

      Multiplies matrix from right with this matrix and returns result as new matrix
      Overrides:
      multiplay in class TransferMatrix
      Parameters:
      matrix - a TransferMatrix object
      Returns:
      a TransferMatrix object
    • set

      public void set(double newLength, double newK)

      set.

      Parameters:
      newLength - a double
      newK - double
    • setK

      public void setK(double newK)

      Setter for the field k.

      Parameters:
      newK - double
    • setLength

      public void setLength(double length)

      setLength.

      Parameters:
      length - double