public class R2x2 extends SquareMatrix<R2x2> implements java.io.Serializable
Represents an element of R2x2, the set of real 3x3 matrices. The class a set of the usual matrix operations and linear transforms on R3 represented by the matrix.
Matrix
,
gov.sns.tools.r3.R3
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
R2x2.IND
Enumeration of the allowed index positions for objects of type
R2x2 . |
Modifier and Type | Field and Description |
---|---|
static int |
INT_SIZE
Matrix size
|
ATTR_DATA, matImpl
Constructor and Description |
---|
R2x2()
Creates a new instance of R2x2 initialized to zero.
|
R2x2(R2x2 matParent)
Copy Constructor - create a deep copy of the given matrix.
|
R2x2(java.lang.String strTokens)
Parsing Constructor - create a R2x2 instance and initialize it
according to a token string of element values.
|
Modifier and Type | Method and Description |
---|---|
R2x2 |
clone()
Creates and returns a deep copy of this matrix.
|
static R2x2 |
clone(R2x2 matTarget)
Create a deep copy of the given
R2x2 matrix object. |
double |
getElem(R2x2.IND iRow,
R2x2.IND iCol)
Return matrix element value.
|
static R2x2 |
newIdentity()
Create and return a new identity matrix
|
protected R2x2 |
newInstance()
Handles object creation required by the base class.
|
static R2x2 |
newRotation(double dblAng)
Create and return the generator element of SO(2) which is
a counter-clockwise rotation.
|
static R2x2 |
newSymplectic() |
static R2x2 |
newZero()
Create and return a new instance of a zero matrix.
|
static R2x2 |
parse(java.lang.String strTokens)
Create a R2x2 instance and initialize it
according to a token string of element values.
|
void |
setElem(R2x2.IND iRow,
R2x2.IND iCol,
double dblVal)
Set the element the given indices to the new value.
|
R2 |
times(R2 vec)
Non-destructive Matrix-Vector multiplication.
|
assignIdentity, conjugateInv, conjugateTrans, det, getSize, inverse, isEquivalentTo, isSymmetric, setElem, solve, solveInPlace, times, times, times, timesEquals, timesEquals, transpose
assignMatrix, assignZero, conditionNumber, copy, equals, getArrayCopy, getColCnt, getElem, getElem, getMatrix, getRowCnt, hashCode, load, max, minus, minusEquals, newInstance, norm1, norm2, normF, normInf, plus, plusEquals, print, save, setElem, setMatrix, setMatrix, setSubMatrix, toString, toStringMatrix, toStringMatrix, toStringMatrix
public static final int INT_SIZE
public R2x2()
public R2x2(R2x2 matParent)
matParent
- initial valuepublic R2x2(java.lang.String strTokens) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException
strTokens
- token vector of 2x2=4 numeric valuesjava.lang.IllegalArgumentException
- wrong number of token stringsjava.lang.NumberFormatException
- bad number format, unparseablepublic static R2x2 newZero()
public static R2x2 newIdentity()
public static R2x2 newSymplectic()
public static R2x2 newRotation(double dblAng)
rotation
- angle in radianspublic static R2x2 clone(R2x2 matTarget)
R2x2
matrix object. The returned
object shares no references with the argument.matTarget
- matrix to be copiedpublic static R2x2 parse(java.lang.String strTokens) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException
strTokens
- token vector of 2x2=4 numeric valuesjava.lang.IllegalArgumentException
- wrong number of token stringsjava.lang.NumberFormatException
- bad number format, unparseablepublic R2x2 clone()
clone
in class BaseMatrix<R2x2>
BaseMatrix.clone()
public void setElem(R2x2.IND iRow, R2x2.IND iCol, double dblVal)
iRow
- matrix row locationiCol
- matrix column indexval
- matrix element at given row and column will be set to this valuepublic double getElem(R2x2.IND iRow, R2x2.IND iCol)
iRow
- row indexiCol
- column indexpublic R2 times(R2 vec)
vec
- the vector factor xprotected R2x2 newInstance()
newInstance
in class BaseMatrix<R2x2>
M
BaseMatrix.newInstance()