Package org.scictrl.mp.orbitcorrect.math
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
Generic beam transfer matrix.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows
-
Constructor Summary
ConstructorDescriptionTransportMatrix constructor comment.TransferMatrix
(double length) TransportMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Getter for the fieldlength
.static TransferMatrix
identity()
identity.double
matrixPhaseX
(BetaMatrix beta) matrixPhaseX.double
matrixPhaseZ
(BetaMatrix beta) matrixPhaseZ.multiplay
(DoubleMatrix matrix) Multipliesmatrix
from right with this matrix and returns result as new matrixmultiplay
(TransferMatrix matrix) multiplay.void
setIdentity.transport
(BetaMatrix beta) transport.protected BetaMatrix
transport
(BetaMatrix beta, double[][] matrix) transport.transport
(DispersionVector disp) transport.protected DispersionVector
transport
(DispersionVector disp, double[][] matrix) transport.Methods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canJoin, canMulitplay, clone, columns, dimensionEquals, get, identity, join, rows, toString
-
Field Details
-
length
protected double lengthTransfer 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
identity.
- Returns:
- DoubleMatrix
-
matrixPhaseX
matrixPhaseX.
- Parameters:
beta
- BetaMatrix- Returns:
- double
-
matrixPhaseZ
matrixPhaseZ.
- Parameters:
beta
- BetaMatrix- Returns:
- double
-
multiplay
Multipliesmatrix
from right with this matrix and returns result as new matrix Multipliesmatrix
from right with this matrix and returns result as new matrix- Overrides:
multiplay
in classDoubleMatrix
- Parameters:
matrix
- DoubleMatrix- Returns:
- DoubleMatrix result=
matrix
times this matrix
-
multiplay
multiplay.
- Parameters:
matrix
- aTransferMatrix
object- Returns:
- a
TransferMatrix
object
-
setIdentity
public void setIdentity()setIdentity.
-
transport
transport.
- Parameters:
beta
- BetaMatrix- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
beta
- BetaMatrixmatrix
- an array ofinvalid reference
double
- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
disp
- aDispersionVector
object- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
disp
- aDispersionVector
objectmatrix
- an array ofinvalid reference
double
- Returns:
- BetaMatrix
-