Package dev.nm.algebra.linear.matrix
Class MatrixSingularityException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.nm.algebra.linear.matrix.MatrixSingularityException
-
- All Implemented Interfaces:
Serializable
public class MatrixSingularityException extends RuntimeException
This is the runtime exception thrown when an operation acts on a singular matrix, e.g., applying LU decomposition to a singular matrix. A singular matrix is a matrix that is not invertible; equivalently, its determinant is 0.- See Also:
- Wikipedia: Singular matrix, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixSingularityException()
Construct an instance ofMatrixSingularityException
.MatrixSingularityException(String msg)
Construct an instance ofMatrixSingularityException
with a message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MatrixSingularityException
public MatrixSingularityException()
Construct an instance ofMatrixSingularityException
.
-
MatrixSingularityException
public MatrixSingularityException(String msg)
Construct an instance ofMatrixSingularityException
with a message.- Parameters:
msg
- an error message
-
-