Class InvalidMatrixDimensionsException

All Implemented Interfaces:
Serializable

public class InvalidMatrixDimensionsException extends RuntimeException
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 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 matrix
      m1n - the number of columns of the left matrix
      m2k - the number of rows of the right matrix
      m2n - the number of columns of the right matrix