Package org.scictrl.mp.orbitcorrect.math
Class SDipoleMatrix
java.lang.Object
org.scictrl.mp.orbitcorrect.math.DoubleMatrix
org.scictrl.mp.orbitcorrect.math.TransferMatrix
org.scictrl.mp.orbitcorrect.math.DipoleMatrix
org.scictrl.mp.orbitcorrect.math.SDipoleMatrix
- All Implemented Interfaces:
Cloneable
SDipoleMatrix class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DipoleMatrix
k, radius
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
ConstructorDescriptionSDipoleMatrix
(double newLength, double newK, double newRadius) SDipoleMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canJoin
(DoubleMatrix matrix) Test if can be joined with this matrix.join
(DoubleMatrix matrix) Multipliesmatrix
from right with this matrix and stores result in this matrix.protected double[][]
makeMatrix.multiplay
(TransferMatrix matrix) multiplay.toString()
Returns a String that represents the value of this object.Methods inherited from class org.scictrl.mp.orbitcorrect.math.DipoleMatrix
getK, getRadius, set, setK, setLength, setRadius, transport
Methods inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
getLength, identity, matrixPhaseX, matrixPhaseZ, multiplay, setIdentity, transport, transport, transport
Methods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canMulitplay, clone, columns, dimensionEquals, get, identity, rows
-
Constructor Details
-
SDipoleMatrix
public SDipoleMatrix(double newLength, double newK, double newRadius) SDipoleMatrix constructor comment.- Parameters:
newLength
- doublenewK
- doublenewRadius
- double
-
-
Method Details
-
canJoin
Test if can be joined with this matrix.- Overrides:
canJoin
in classDoubleMatrix
- Parameters:
matrix
- DoubleMatrix- Returns:
- boolean
-
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
-
makeMatrix
protected double[][] makeMatrix()makeMatrix.
- Specified by:
makeMatrix
in classDipoleMatrix
- Returns:
- an array of
invalid reference
double
-
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
-
toString
Returns a String that represents the value of this object.- Overrides:
toString
in classDoubleMatrix
-