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
FieldsFields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows -
Constructor Summary
ConstructorsConstructorDescriptionTransportMatrix constructor comment.TransferMatrix(double length) TransportMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter for the fieldlength.static TransferMatrixidentity()identity.doublematrixPhaseX(BetaMatrix beta) matrixPhaseX.doublematrixPhaseZ(BetaMatrix beta) matrixPhaseZ.multiplay(DoubleMatrix matrix) Multipliesmatrixfrom right with this matrix and returns result as new matrixmultiplay(TransferMatrix matrix) multiplay.voidsetIdentity.transport(BetaMatrix beta) transport.protected BetaMatrixtransport(BetaMatrix beta, double[][] matrix) transport.transport(DispersionVector disp) transport.protected DispersionVectortransport(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
Multipliesmatrixfrom right with this matrix and returns result as new matrix Multipliesmatrixfrom right with this matrix and returns result as new matrix- Overrides:
multiplayin classDoubleMatrix- Parameters:
matrix- DoubleMatrix- Returns:
- DoubleMatrix result=
matrixtimes this matrix
-
multiplay
multiplay.
- Parameters:
matrix- aTransferMatrixobject- Returns:
- a
TransferMatrixobject
-
setIdentity
public void setIdentity()setIdentity.
-
transport
transport.
- Parameters:
beta- BetaMatrix- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
beta- BetaMatrixmatrix- an array ofobjectsinvalid reference
double- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
disp- aDispersionVectorobject- Returns:
- BetaMatrix
-
transport
transport.
- Parameters:
disp- aDispersionVectorobjectmatrix- an array ofobjectsinvalid reference
double- Returns:
- BetaMatrix
-