Class TransferMatrix

java.lang.Object
org.scictrl.mp.orbitcorrect.math.DoubleMatrix
org.scictrl.mp.orbitcorrect.math.TransferMatrix
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BetaMatrix, DipoleMatrix, DriftMatrix, QuadrupoleMatrix

public class TransferMatrix extends DoubleMatrix
Generic beam transfer matrix.
Author:
igor@scictrl.com
  • Field Details

    • length

      protected double length
      Transfer element length.
  • Constructor Details

    • TransferMatrix

      public TransferMatrix()
      TransportMatrix constructor comment.
    • TransferMatrix

      public TransferMatrix(double length)
      TransportMatrix constructor comment.
      Parameters:
      length - a double
  • Method Details

    • getLength

      public double getLength()

      Getter for the field length.

      Returns:
      double
    • identity

      public static TransferMatrix identity()

      identity.

      Returns:
      DoubleMatrix
    • matrixPhaseX

      public double matrixPhaseX(BetaMatrix beta)

      matrixPhaseX.

      Parameters:
      beta - BetaMatrix
      Returns:
      double
    • matrixPhaseZ

      public double matrixPhaseZ(BetaMatrix beta)

      matrixPhaseZ.

      Parameters:
      beta - BetaMatrix
      Returns:
      double
    • multiplay

      public DoubleMatrix multiplay(DoubleMatrix matrix)
      Multiplies matrix from right with this matrix and returns result as new matrix Multiplies matrix from right with this matrix and returns result as new matrix
      Overrides:
      multiplay in class DoubleMatrix
      Parameters:
      matrix - DoubleMatrix
      Returns:
      DoubleMatrix result=matrix times this matrix
    • multiplay

      public TransferMatrix multiplay(TransferMatrix matrix)

      multiplay.

      Parameters:
      matrix - a TransferMatrix object
      Returns:
      a TransferMatrix object
    • setIdentity

      public void setIdentity()

      setIdentity.

    • transport

      public BetaMatrix transport(BetaMatrix beta)

      transport.

      Parameters:
      beta - BetaMatrix
      Returns:
      BetaMatrix
    • transport

      protected BetaMatrix transport(BetaMatrix beta, double[][] matrix)

      transport.

      Parameters:
      beta - BetaMatrix
      matrix - an array of
      invalid reference
      double
      objects
      Returns:
      BetaMatrix
    • transport

      public DispersionVector transport(DispersionVector disp)

      transport.

      Parameters:
      disp - a DispersionVector object
      Returns:
      BetaMatrix
    • transport

      protected DispersionVector transport(DispersionVector disp, double[][] matrix)

      transport.

      Parameters:
      disp - a DispersionVector object
      matrix - an array of
      invalid reference
      double
      objects
      Returns:
      BetaMatrix