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
length
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows
-
Constructor Summary
ConstructorDescriptionQuadrupoleMatrix
(double newLength, double newK) DriftMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canJoin
(DoubleMatrix matrix) Test if can be joined with this matrix.double
getK()
Getter for the fieldk
.join
(DoubleMatrix matrix) Multipliesmatrix
from right with this matrix and stores result in this matrix.multiplay
(TransferMatrix matrix) multiplay.void
set
(double newLength, double newK) set.void
setK
(double newK) Setter for the fieldk
.void
setLength
(double length) setLength.Methods inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
getLength, identity, matrixPhaseX, matrixPhaseZ, multiplay, setIdentity, transport, transport, transport, transport
Methods 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:
canJoin
in classDoubleMatrix
- Parameters:
matrix
- DoubleMatrix- Returns:
- boolean
-
getK
public double getK()Getter for the field
k
.- Returns:
- double
-
join
Multipliesmatrix
from right with this matrix and stores result in this matrix. Return Matrix is stih matrix. Multipliesmatrix
from right with this matrix and stores result in this matrix. Return Matrix is stih matrix.- Overrides:
join
in classDoubleMatrix
- Parameters:
matrix
- DoubleMatrix- Returns:
- DoubleMatrix this matrix =
matrix
times this matrix
-
multiplay
multiplay.
Multipliesmatrix
from right with this matrix and returns result as new matrix- Overrides:
multiplay
in classTransferMatrix
- Parameters:
matrix
- aTransferMatrix
object- Returns:
- a
TransferMatrix
object
-
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
-