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, 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
ConstructorDescriptionRDipoleMatrix
(double newLength, double newK, double newRadius, double newLAngle, double newRAngle) SDipoleMatrix constructor comment. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canJoin
(DoubleMatrix matrix) Test if can be joined with this matrix.double
getEdgeAngle.double
Getter for the fieldlAngle
.double
Getter for the fieldrAngle
.join
(DoubleMatrix matrix) Multipliesmatrix
from 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.void
set
(double newLength, double newK, double newRadius, double lAngle, double rAngle) set.void
setLAngle
(double newLAngle) Setter for the fieldlAngle
.void
setRAngle
(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, 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
-
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:
canJoin
in 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
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
-
makeMatrix
protected double[][] makeMatrix(double lAngle, double length, double rAngle, double[][] matrix) makeMatrix.
- Parameters:
lAngle
- a doublelength
- a doublerAngle
- a doublematrix
- an array ofinvalid reference
double
- 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
-
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:
toString
in classDoubleMatrix
-