Package hlcd.exceptions
Class InvalidMatrixDimensionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hlcd.exceptions.InvalidMatrixDimensionsException
- All Implemented Interfaces:
Serializable
An exception that can be thrown when the dimensions of two matrices don't
match for multiplication. This is used when \(G\) is multiplied by
\(G^T\) or \(\overline{G}^T\). On average, this exception should not be
encountered.
- Since:
- 1.8
- Version:
- 1.0 (January 28th, 2022)
- Author:
- Maysara Al Jumaily
- See Also:
Matrix, Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidMatrixDimensionsException(byte m1k, byte m1n, byte m2k, byte m2n)Constructs a new runtime exception when two matrices whose dimensions don't match for multiplication. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidMatrixDimensionsException
public InvalidMatrixDimensionsException(byte m1k, byte m1n, byte m2k, byte m2n)Constructs a new runtime exception when two matrices whose dimensions don't match for multiplication.- Parameters:
m1k- the number of rows of the left matrixm1n- the number of columns of the left matrixm2k- the number of rows of the right matrixm2n- the number of columns of the right matrix
-