Package xal.tools.math
Class GenericSquareMatrix
- All Implemented Interfaces:
IArchive
Concrete implementation of Square matrix of arbitrary size
- Author:
- Blaz Kranjc
-
Field Summary
Fields inherited from class xal.tools.math.BaseMatrix
ATTR_DATA, DBL_EPS, ULPS_BRACKET
-
Constructor Summary
ConstructorsConstructorDescriptionGenericSquareMatrix
(double[][] arrVals) GenericSquareMatrix
(int intSize) GenericSquareMatrix
(int intSize, String strTokens) GenericSquareMatrix
(org.ejml.data.DenseMatrix64F mat) GenericSquareMatrix
(GenericSquareMatrix matParent) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Base classes must override the clone operation in order to make deep copies of the current object.protected GenericSquareMatrix
newInstance
(int row, int col) Creates a new, uninitialized instance of this matrix type.Methods inherited from class xal.tools.math.SquareMatrix
conjugateInv, conjugateTrans, det, getSize, isSymmetric, solve, solveInPlace, timesEquals, trace
Methods inherited from class xal.tools.math.BaseMatrix
assignIdentity, assignMatrix, assignZero, conditionNumber, copy, equals, getArrayCopy, getColCnt, getElem, getElem, getMatrix, getRowCnt, hashCode, inverse, isApproxEqual, isApproxEqual, isEquivalentTo, isSquare, load, max, minus, minusEquals, newInstance, norm1, norm2, normF, normInf, plus, plusEquals, print, rank, save, setElem, setElem, setMatrix, setMatrix, setSubMatrix, times, times, times, timesEquals, toString, toStringMatrix, toStringMatrix, toStringMatrix, transpose
-
Constructor Details
-
GenericSquareMatrix
public GenericSquareMatrix(int intSize) - See Also:
-
GenericSquareMatrix
- See Also:
-
GenericSquareMatrix
- Throws:
NumberFormatException
- See Also:
-
GenericSquareMatrix
- Throws:
ArrayIndexOutOfBoundsException
- See Also:
-
GenericSquareMatrix
public GenericSquareMatrix(org.ejml.data.DenseMatrix64F mat) - See Also:
-
-
Method Details
-
clone
Description copied from class:BaseMatrix
Base classes must override the clone operation in order to make deep copies of the current object. This operation cannot be done without the exact type.- Specified by:
clone
in classBaseMatrix<GenericSquareMatrix>
- See Also:
-
newInstance
Description copied from class:BaseMatrix
Creates a new, uninitialized instance of this matrix type.
NOTE: · This method was made abstract by Ivo List. Rather than use reflection to instantiate new objects, this function is now delegated to the concrete classes. This architecture is more robust and allows the compiler to do more error checking.
- Specified by:
newInstance
in classBaseMatrix<GenericSquareMatrix>
- Parameters:
row
- Number of rows.col
- Number of columns.- Returns:
- uninitialized matrix object of type
M
- See Also:
-