Added isLowerTriangular method to check for lower triangular matrices.
Added isUpperTriangular method to check for upper triangular matrices.
Javadocs have been added to all the new methods.
All Commits
- 89e1fed - Add new matrix type checker
- 13dd86c - Overload the `isLowerTriangular` method
- ccca585 - Add javadoc to `isLowerTriangular` method
- 0557b9b - Add new matrix type checker
- ad09dd5 - Add javadoc to `isUpperTriangular` methods
- ef282af - Update the javadocs on recently added methods
- 6078663 - Update the javadoc and fix the javadoc error
Description
Triangular Matrices in linear algebra are a specific type of square matrix where all the elements either above or below the main diagonal are zeros.
The main diagonal of a square matrix consists of elements that run from the top-left to the bottom-right of the matrix. In triangular matrices, the elements above the main diagonal (upper triangular) or below the main diagonal (lower triangular) are all zeros.
A diagonal matrix is one that consists of upper and lower a triangular elements. You can use the Matrix.isDiagonal(Matrix) method to check whether the matrix is diagonal.
An upper triangular matrix is a square matrix where all elements below the main diagonal are zeros.
The elements above or on the main diagonal may be non-zero. Visually, an upper triangular matrix will have a shape that looks like:
A lower triangular matrix is a square matrix where all the elements above the main diagonal are zeros.
The elements below or on the main diagonal may be non-zero. Visually, a lower triangular matrix will have a shape that looks like:
JMatrix now includes the isLowerTriangular and isUpperTriangular methods to check whether the given square matrix is lower triangular or upper triangular, respectively. These methods can be useful in identifying specific matrix properties and performing various matrix-related calculations.
Summary
In this set of changes, the JMatrix library has been enhanced with the addition of isLowerTriangular and isUpperTriangular methods to check for lower triangular and upper triangular matrices, respectively.
Javadocs have also been included for all the newly added methods, ensuring comprehensive documentation and improving code clarity. These changes contribute to the versatility and usability of JMatrix by providing additional matrix type checkers and descriptive documentation for users.
What's Changed
isLowerTriangular
method to check for lower triangular matrices.isUpperTriangular
method to check for upper triangular matrices.All Commits
- 89e1fed - Add new matrix type checker - 13dd86c - Overload the `isLowerTriangular` method - ccca585 - Add javadoc to `isLowerTriangular` method - 0557b9b - Add new matrix type checker - ad09dd5 - Add javadoc to `isUpperTriangular` methods - ef282af - Update the javadocs on recently added methods - 6078663 - Update the javadoc and fix the javadoc errorDescription
Triangular Matrices in linear algebra are a specific type of square matrix where all the elements either above or below the main diagonal are zeros. The main diagonal of a square matrix consists of elements that run from the top-left to the bottom-right of the matrix. In triangular matrices, the elements above the main diagonal (upper triangular) or below the main diagonal (lower triangular) are all zeros. A diagonal matrix is one that consists of upper and lower a triangular elements. You can use the
Matrix.isDiagonal(Matrix)
method to check whether the matrix is diagonal.Upper Triangular Matrix
An upper triangular matrix is a square matrix where all elements below the main diagonal are zeros. The elements above or on the main diagonal may be non-zero. Visually, an upper triangular matrix will have a shape that looks like:
Lower Triangular Matrix
A lower triangular matrix is a square matrix where all the elements above the main diagonal are zeros. The elements below or on the main diagonal may be non-zero. Visually, a lower triangular matrix will have a shape that looks like:
JMatrix now includes the
isLowerTriangular
andisUpperTriangular
methods to check whether the given square matrix is lower triangular or upper triangular, respectively. These methods can be useful in identifying specific matrix properties and performing various matrix-related calculations.Summary
In this set of changes, the JMatrix library has been enhanced with the addition of
isLowerTriangular
andisUpperTriangular
methods to check for lower triangular and upper triangular matrices, respectively. Javadocs have also been included for all the newly added methods, ensuring comprehensive documentation and improving code clarity. These changes contribute to the versatility and usability of JMatrix by providing additional matrix type checkers and descriptive documentation for users.