Package dev.nm.algebra.linear.matrix
Class MatrixMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.nm.algebra.linear.matrix.MatrixMismatchException
-
- All Implemented Interfaces:
Serializable
public class MatrixMismatchException extends RuntimeException
This is the runtime exception thrown when an operation acts on matrices that have incompatible dimensions. E.g.,- A + B fails when A and B have different numbers of rows and columns.
- A x B fails when A has a number of columns different from the number of rows B has.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixMismatchException()
Construct an instance ofMatrixMismatchException
.MatrixMismatchException(String msg)
Construct an instance ofMatrixMismatchException
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
-
MatrixMismatchException
public MatrixMismatchException()
Construct an instance ofMatrixMismatchException
.
-
MatrixMismatchException
public MatrixMismatchException(String msg)
Construct an instance ofMatrixMismatchException
with a message.- Parameters:
msg
- an error message
-
-