Package org.drip.numerical.matrix
Class R1Square
java.lang.Object
org.drip.numerical.matrix.R1Square
- Direct Known Subclasses:
R1SquareEigenized
,R1SquareRotation2x2
,R1Triangular
,R1Tridiagonal
public class R1Square
extends java.lang.Object
R1Square implements the type and Functionality associated with a R1Square Matrix. The
References are:
- Axler, S. J. (1997): Linear Algebra Done Right 2nd Edition Springer New York NY
- Bernstein, D. S. (2009): Matrix Mathematics: Theory, Facts, and Formulas 2nd Edition Princeton University Press Princeton NJ
- Herstein, I. N. (1975): Topics in Algebra 2nd Edition Wiley New York NY
- Prasolov, V. V. (1994): Topics in Algebra American Mathematical Society Providence RI
- Wikipedia (2024): Triangular Matrix https://en.wikipedia.org/wiki/Triangular_matrix
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Numerical Quadrature, Differentiation, Eigenization, Linear Algebra, and Utilities
- Package = Implementation of R1 C1 Matrices
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description R1Square
add(R1Square squareMatrixOther)
Compute the Addition with the other Square MatrixR1ToR1
characteristicPolynomial()
Retrieve the Characteristic Polynomial of the Eigenvaluesdouble
conditionNumberL2()
Compute the L2 Condition Number of the Matrixdouble
defaultConditionNumber()
Compute the Default Condition Number of the Matrixdouble
determinant()
Compute the Determinant of the Matrixdouble[]
diagonalEntryArray()
Retrieve the Array of Diagonal EntriesEigenOutput
eigenize()
Eigenize and Extract the Components of the Specified Matrixjava.util.Map<java.lang.Double,java.lang.Integer>
eigenValueMultiplicityMap()
Retrieve the Eigenvalue Multiplicity Mapboolean
isNormal()
Calculate whether the Matrix is "Normal"boolean
isTriangularizable()
Calculate whether the Matrix is "Triangularizable"R1Square
multiply(double[] r1Array)
Compute the Product with the VectorR1Square
multiply(R1Square squareMatrixOther)
Compute the Product with the other Square MatrixR1Square
power(int k)
Compute the kth PowerQR
qrDecomposition()
Generate the QR Decomposition of the Square Matrixdouble[][]
r1Grid()
Retrieve R1 GridQR
rqDecomposition()
Generate the RQ Decomposition of the Square MatrixR1Square
scale(double scale)
Scale the Square Matrixint
size()
Retrieve the Size of the Square Matrixdouble
spectralRadius()
Compute the Spectral Radius of the Matrixstatic R1Square
Standard(double[][] r1Grid)
Construct a Standard Instance of R1SquareR1Square
subtract(R1Square squareMatrixOther)
Compute the Subtraction with the other Square MatrixEigenOutput
svd()
Perform Singular Value Decomposition and Extract the Components of the Specified Matrixdouble
svdBasedFrobeniusNorm()
Compute the Frobenius Norm of the Eigenvaluesdouble
trace()
Compute the TraceR1Square
transpose()
Transpose the Square MatrixMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
Standard
Construct a Standard Instance of R1Square- Parameters:
r1Grid
- R1 Grid- Returns:
- Standard Instance of R1Square
-
r1Grid
public double[][] r1Grid()Retrieve R1 Grid- Returns:
- R1 Grid
-
size
public int size()Retrieve the Size of the Square Matrix- Returns:
- Size of the Square Matrix
-
trace
public double trace()Compute the Trace- Returns:
- The Trace
-
transpose
Transpose the Square Matrix- Returns:
- The Transposed Square Matrix
-
add
Compute the Addition with the other Square Matrix- Parameters:
squareMatrixOther
- "Other" Square Matrix- Returns:
- Resulting Matrix
-
scale
Scale the Square Matrix- Parameters:
scale
- Scalar to Scale by- Returns:
- Resulting Matrix
-
subtract
Compute the Subtraction with the other Square Matrix- Parameters:
squareMatrixOther
- "Other" Square Matrix- Returns:
- Resulting Matrix
-
multiply
Compute the Product with the other Square Matrix- Parameters:
squareMatrixOther
- "Other" Square Matrix- Returns:
- Resulting Matrix
-
multiply
Compute the Product with the Vector- Parameters:
r1Array
- Vector Array- Returns:
- Resulting Matrix
-
isNormal
public boolean isNormal()Calculate whether the Matrix is "Normal"- Returns:
- TRUE - Matrix is "Normal"
-
isTriangularizable
public boolean isTriangularizable()Calculate whether the Matrix is "Triangularizable"- Returns:
- TRUE - Matrix is "Triangularizable"
-
qrDecomposition
Generate the QR Decomposition of the Square Matrix- Returns:
- QR Decomposition
-
rqDecomposition
Generate the RQ Decomposition of the Square Matrix- Returns:
- RQ Decomposition
-
eigenize
Eigenize and Extract the Components of the Specified Matrix- Returns:
- The EigenComponents
-
svd
Perform Singular Value Decomposition and Extract the Components of the Specified Matrix- Returns:
- The Singular Value Decomposition Components
-
svdBasedFrobeniusNorm
public double svdBasedFrobeniusNorm() throws java.lang.ExceptionCompute the Frobenius Norm of the Eigenvalues- Returns:
- Frobenius Norm of the Eigenvalues
- Throws:
java.lang.Exception
- Thrown if the R1 Square Matrix cannot be eigenized
-
diagonalEntryArray
public double[] diagonalEntryArray()Retrieve the Array of Diagonal Entries- Returns:
- Array of Diagonal Entries
-
power
Compute the kth Power- Parameters:
k
- Power k- Returns:
- kth Power
-
eigenValueMultiplicityMap
public java.util.Map<java.lang.Double,java.lang.Integer> eigenValueMultiplicityMap()Retrieve the Eigenvalue Multiplicity Map- Returns:
- Eigenvalue Multiplicity Map
-
determinant
public double determinant() throws java.lang.ExceptionCompute the Determinant of the Matrix- Returns:
- Determinant of the Matrix
- Throws:
java.lang.Exception
- Thrown if the Determinant cannot be calculated
-
conditionNumberL2
public double conditionNumberL2() throws java.lang.ExceptionCompute the L2 Condition Number of the Matrix- Returns:
- L2 Condition Number of the Matrix
- Throws:
java.lang.Exception
- Thrown if the Condition Number cannot be calculated
-
defaultConditionNumber
public double defaultConditionNumber() throws java.lang.ExceptionCompute the Default Condition Number of the Matrix- Returns:
- Default Condition Number of the Matrix
- Throws:
java.lang.Exception
- Thrown if the Default Condition Number cannot be calculated
-
characteristicPolynomial
Retrieve the Characteristic Polynomial of the Eigenvalues- Returns:
- Characteristic Polynomial of the Eigenvalues
-
spectralRadius
public double spectralRadius() throws java.lang.ExceptionCompute the Spectral Radius of the Matrix- Returns:
- Spectral Radius of the Matrix
- Throws:
java.lang.Exception
- Thrown if the Spectral Radius cannot be calculated
-