Class NonSquareMatrixException

  • All Implemented Interfaces:
    java.io.Serializable, MathThrowable

    public class NonSquareMatrixException
    extends InvalidMatrixException
    Thrown when an operation defined only for square matrices is applied to non-square ones.
    Since:
    2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • NonSquareMatrixException

        public NonSquareMatrixException​(int rows,
                                        int columns)
        Construct an exception with the given message.
        Parameters:
        rows - number of rows of the faulty matrix
        columns - number of columns of the faulty matrix