Package org.apache.commons.math.linear
Class NonSquareMatrixException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.math.MathRuntimeException
org.apache.commons.math.linear.InvalidMatrixException
org.apache.commons.math.linear.NonSquareMatrixException
- All Implemented Interfaces:
Serializable
,MathThrowable
Thrown when an operation defined only for square matrices is applied to non-square ones.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonSquareMatrixException
(int rows, int columns) Construct an exception with the given message. -
Method Summary
Methods inherited from class org.apache.commons.math.MathRuntimeException
createArithmeticException, createArithmeticException, createArrayIndexOutOfBoundsException, createArrayIndexOutOfBoundsException, createConcurrentModificationException, createConcurrentModificationException, createEOFException, createEOFException, createIllegalArgumentException, createIllegalArgumentException, createIllegalArgumentException, createIllegalStateException, createIllegalStateException, createInternalError, createIOException, createNoSuchElementException, createNoSuchElementException, createNullPointerException, createNullPointerException, createParseException, createParseException, createUnsupportedOperationException, getArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getPattern, getSpecificPattern, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NonSquareMatrixException
public NonSquareMatrixException(int rows, int columns) Construct an exception with the given message.- Parameters:
rows
- number of rows of the faulty matrixcolumns
- number of columns of the faulty matrix
-