Class 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 Detail

      • MatrixMismatchException

        public MatrixMismatchException()
        Construct an instance of MatrixMismatchException.
      • MatrixMismatchException

        public MatrixMismatchException​(String msg)
        Construct an instance of MatrixMismatchException with a message.
        Parameters:
        msg - an error message