Package org.scictrl.mp.orbitcorrect.math
Class QuadrupoleMatrix
java.lang.Object
org.scictrl.mp.orbitcorrect.math.DoubleMatrix
org.scictrl.mp.orbitcorrect.math.TransferMatrix
org.scictrl.mp.orbitcorrect.math.QuadrupoleMatrix
- All Implemented Interfaces:
Cloneable
QuadrupoleMatrix class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
lengthFields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows -
Constructor Summary
ConstructorsConstructorDescriptionQuadrupoleMatrix(double newLength, double newK) DriftMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanJoin(DoubleMatrix matrix) Test if can be joined with this matrix.doublegetK()Getter for the fieldk.join(DoubleMatrix matrix) Multipliesmatrixfrom right with this matrix and stores result in this matrix.multiplay(TransferMatrix matrix) multiplay.voidset(double newLength, double newK) set.voidsetK(double newK) Setter for the fieldk.voidsetLength(double length) setLength.Methods inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
getLength, identity, matrixPhaseX, matrixPhaseZ, multiplay, setIdentity, transport, transport, transport, transportMethods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canMulitplay, clone, columns, dimensionEquals, get, identity, rows, toString
-
Constructor Details
-
QuadrupoleMatrix
public QuadrupoleMatrix(double newLength, double newK) DriftMatrix constructor comment.- Parameters:
newLength- a doublenewK- a double
-
-
Method Details
-
canJoin
Test if can be joined with this matrix.- Overrides:
canJoinin classDoubleMatrix- Parameters:
matrix- DoubleMatrix- Returns:
- boolean
-
getK
public double getK()Getter for the field
k.- Returns:
- double
-
join
Multipliesmatrixfrom right with this matrix and stores result in this matrix. Return Matrix is stih matrix. Multipliesmatrixfrom right with this matrix and stores result in this matrix. Return Matrix is stih matrix.- Overrides:
joinin classDoubleMatrix- Parameters:
matrix- DoubleMatrix- Returns:
- DoubleMatrix this matrix =
matrixtimes this matrix
-
multiplay
multiplay.
Multipliesmatrixfrom right with this matrix and returns result as new matrix- Overrides:
multiplayin classTransferMatrix- Parameters:
matrix- aTransferMatrixobject- Returns:
- a
TransferMatrixobject
-
set
public void set(double newLength, double newK) set.
- Parameters:
newLength- a doublenewK- 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
-