Package org.drip.numerical.matrix
Class R1Triangular
java.lang.Object
org.drip.numerical.matrix.R1Square
org.drip.numerical.matrix.R1Triangular
public class R1Triangular extends R1Square
R1Triangular implements the type and Functionality associated with an R1 Triangular
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
-
Field Summary
Fields Modifier and Type Field Description static intLOWER_AND_UPPER_TRIANGULARLower + Upper Triangular Matrixstatic intLOWER_TRIANGULARLower Triangular Matrixstatic intNON_TRIANGULARNon Triangular Matrixstatic intUPPER_TRIANGULARUpper Triangular Matrix -
Method Summary
Modifier and Type Method Description R1ToR1characteristicPolynomial()Retrieve the Characteristic Polynomial of the EigenvaluesdoubleconditionNumberLInfinity()Compute the LInfinity Condition Number of the Matrixdoubledeterminant()Compute the Determinant of the Triangular Matrixjava.util.Map<java.lang.Double,java.lang.Integer>eigenValueMultiplicityMap()Retrieve the Eigenvalue Multiplicity MapbooleanisAtomic()Indicate if the Matrix is "Atomic" UnitriangularbooleanisAtomicLower()Indicate if the Matrix is Lower "Atomic" UnitriangularbooleanisAtomicUpper()Indicate if the Matrix is Upper "Atomic" UnitriangularbooleanisDiagonal()Indicate if the Matrix is DiagonalbooleanisFrobenius()Indicate if the Matrix is Frobenius UnitriangularbooleanisGauss()Indicate if the Matrix is Gauss UnitriangularbooleanisGaussTransformation()Indicate if the Matrix is Gauss Transformation UnitriangularbooleanisLower()Indicate if the Matrix is Lower TriangularbooleanisLowerUnitriangular()Indicate if the Matrix is Lower UnitriangularbooleanisNormed()Indicate if the Matrix is "Normed" TriangularbooleanisStrictlyLower()Indicate if the Matrix is Strictly Lower TriangularbooleanisStrictlyUpper()Indicate if the Matrix is Strictly Upper TriangularbooleanisTriangularizable()Calculate whether the Matrix is "Triangularizable"booleanisUnit()Indicate if the Matrix is "Unit" TriangularbooleanisUnitriangular()Indicate if the Matrix is UnitriangularbooleanisUpper()Indicate if the Matrix is Upper TriangularbooleanisUpperUnitriangular()Indicate if the Matrix is Upper Unitriangulardoublepermanent()Compute the Permanent of the Triangular Matrixstatic R1TriangularStandard(double[][] r2Array)R1Triangular Constructorinttype()Retrieve the Matrix Typestatic intType(double[][] r2Array)Retrieve the Triangular Type of the MatrixMethods inherited from class org.drip.numerical.matrix.R1Square
add, conditionNumberL2, defaultConditionNumber, diagonalEntryArray, eigenize, isNormal, multiply, multiply, power, qrDecomposition, r1Grid, rqDecomposition, scale, size, spectralRadius, subtract, svd, svdBasedFrobeniusNorm, trace, transposeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LOWER_TRIANGULAR
public static int LOWER_TRIANGULARLower Triangular Matrix -
UPPER_TRIANGULAR
public static int UPPER_TRIANGULARUpper Triangular Matrix -
LOWER_AND_UPPER_TRIANGULAR
public static int LOWER_AND_UPPER_TRIANGULARLower + Upper Triangular Matrix -
NON_TRIANGULAR
public static int NON_TRIANGULARNon Triangular Matrix
-
-
Method Details
-
Type
public static final int Type(double[][] r2Array)Retrieve the Triangular Type of the Matrix- Parameters:
r2Array- R2 Array- Returns:
- The Triangular Type
-
Standard
R1Triangular Constructor- Parameters:
r2Array- R2 Array- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
type
public int type()Retrieve the Matrix Type- Returns:
- Matrix Type
-
isUpper
public boolean isUpper()Indicate if the Matrix is Upper Triangular- Returns:
- TRUE - Matrix is Upper Triangular
-
isLower
public boolean isLower()Indicate if the Matrix is Lower Triangular- Returns:
- TRUE - Matrix is Lower Triangular
-
isDiagonal
public boolean isDiagonal()Indicate if the Matrix is Diagonal- Returns:
- TRUE - Matrix is Diagonal
-
isTriangularizable
public boolean isTriangularizable()Calculate whether the Matrix is "Triangularizable"- Overrides:
isTriangularizablein classR1Square- Returns:
- TRUE - Matrix is "Triangularizable"
-
isUnitriangular
public boolean isUnitriangular()Indicate if the Matrix is Unitriangular- Returns:
- TRUE - Matrix is Unitriangular
-
isUnit
public boolean isUnit()Indicate if the Matrix is "Unit" Triangular- Returns:
- TRUE - Matrix is "Unit" Triangular
-
isNormed
public boolean isNormed()Indicate if the Matrix is "Normed" Triangular- Returns:
- TRUE - Matrix is "Normed" Triangular
-
isUpperUnitriangular
public boolean isUpperUnitriangular()Indicate if the Matrix is Upper Unitriangular- Returns:
- TRUE - Matrix is Upper Unitriangular
-
isLowerUnitriangular
public boolean isLowerUnitriangular()Indicate if the Matrix is Lower Unitriangular- Returns:
- TRUE - Matrix is Lower Unitriangular
-
isStrictlyUpper
public boolean isStrictlyUpper()Indicate if the Matrix is Strictly Upper Triangular- Returns:
- TRUE - Matrix is Strictly Upper Triangular
-
isStrictlyLower
public boolean isStrictlyLower()Indicate if the Matrix is Strictly Lower Triangular- Returns:
- TRUE - Matrix is Strictly Lower Triangular
-
isAtomicLower
public boolean isAtomicLower()Indicate if the Matrix is Lower "Atomic" Unitriangular- Returns:
- TRUE - Matrix is Lower "Atomic" Unitriangular
-
isAtomicUpper
public boolean isAtomicUpper()Indicate if the Matrix is Upper "Atomic" Unitriangular- Returns:
- TRUE - Matrix is Upper "Atomic" Unitriangular
-
isAtomic
public boolean isAtomic()Indicate if the Matrix is "Atomic" Unitriangular- Returns:
- TRUE - Matrix is "Atomic" Unitriangular
-
isFrobenius
public boolean isFrobenius()Indicate if the Matrix is Frobenius Unitriangular- Returns:
- TRUE - Matrix is Frobenius Unitriangular
-
isGauss
public boolean isGauss()Indicate if the Matrix is Gauss Unitriangular- Returns:
- TRUE - Matrix is Gauss Unitriangular
-
isGaussTransformation
public boolean isGaussTransformation()Indicate if the Matrix is Gauss Transformation Unitriangular- Returns:
- TRUE - Matrix is Gauss Transformation Unitriangular
-
determinant
public double determinant() throws java.lang.ExceptionCompute the Determinant of the Triangular Matrix- Overrides:
determinantin classR1Square- Returns:
- Determinant of the Triangular Matrix
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
permanent
public double permanent() throws java.lang.ExceptionCompute the Permanent of the Triangular Matrix- Returns:
- Permanent of the Triangular Matrix
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
eigenValueMultiplicityMap
public java.util.Map<java.lang.Double,java.lang.Integer> eigenValueMultiplicityMap()Retrieve the Eigenvalue Multiplicity Map- Overrides:
eigenValueMultiplicityMapin classR1Square- Returns:
- Eigenvalue Multiplicity Map
-
conditionNumberLInfinity
public double conditionNumberLInfinity() throws java.lang.ExceptionCompute the LInfinity Condition Number of the Matrix- Returns:
- LInfinity Condition Number of the Matrix
- Throws:
java.lang.Exception- Thrown if the Condition Number cannot be calculated
-
characteristicPolynomial
Retrieve the Characteristic Polynomial of the Eigenvalues- Overrides:
characteristicPolynomialin classR1Square- Returns:
- Characteristic Polynomial of the Eigenvalues
-