Package org.scictrl.mp.orbitcorrect.math
Class RDipoleMatrix
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.RDipoleMatrix
- All Implemented Interfaces:
Cloneable
RDipoleMatrix class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DipoleMatrix
k, radiusFields inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
lengthFields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows -
Constructor Summary
ConstructorsConstructorDescriptionRDipoleMatrix(double newLength, double newK, double newRadius, double newLAngle, double newRAngle) SDipoleMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanJoin(DoubleMatrix matrix) Test if can be joined with this matrix.doublegetEdgeAngle.doubleGetter for the fieldlAngle.doubleGetter for the fieldrAngle.join(DoubleMatrix matrix) Multipliesmatrixfrom right with this matrix and stores result in this matrix.protected double[][]makeMatrix.protected double[][]makeMatrix(double lAngle, double length, double rAngle, double[][] matrix) makeMatrix.multiplay(TransferMatrix matrix) multiplay.voidset(double newLength, double newK, double newRadius, double lAngle, double rAngle) set.voidsetLAngle(double newLAngle) Setter for the fieldlAngle.voidsetRAngle(double newRAngle) Setter for the fieldrAngle.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, transportMethods inherited from class org.scictrl.mp.orbitcorrect.math.TransferMatrix
getLength, identity, matrixPhaseX, matrixPhaseZ, multiplay, setIdentity, transport, transport, transportMethods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canMulitplay, clone, columns, dimensionEquals, get, identity, rows
-
Constructor Details
-
RDipoleMatrix
public RDipoleMatrix(double newLength, double newK, double newRadius, double newLAngle, double newRAngle) SDipoleMatrix constructor comment.- Parameters:
newLength- doublenewK- doublenewRadius- doublenewLAngle- a doublenewRAngle- a double
-
-
Method Details
-
canJoin
Test if can be joined with this matrix.- Overrides:
canJoinin classDoubleMatrix- Parameters:
matrix- DoubleMatrix- Returns:
- boolean
-
getEdgeAngle
public double getEdgeAngle()getEdgeAngle.
- Returns:
- double
-
getLAngle
public double getLAngle()Getter for the field
lAngle.- Returns:
- double
-
getRAngle
public double getRAngle()Getter for the field
rAngle.- 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
-
makeMatrix
protected double[][] makeMatrix()makeMatrix.
- Specified by:
makeMatrixin classDipoleMatrix- Returns:
- an array of
objects
invalid reference
double
-
makeMatrix
protected double[][] makeMatrix(double lAngle, double length, double rAngle, double[][] matrix) makeMatrix.
- Parameters:
lAngle- a doublelength- a doublerAngle- a doublematrix- an array ofobjectsinvalid reference
double- Returns:
- an array of
objects
invalid reference
double
-
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, double newRadius, double lAngle, double rAngle) set.
- Parameters:
newLength- a doublenewK- doublenewRadius- a doublelAngle- a doublerAngle- a double
-
setLAngle
public void setLAngle(double newLAngle) Setter for the field
lAngle.- Parameters:
newLAngle- double
-
setRAngle
public void setRAngle(double newRAngle) Setter for the field
rAngle.- Parameters:
newRAngle- double
-
toString
Returns a String that represents the value of this object.- Overrides:
toStringin classDoubleMatrix
-