Package org.hipparchus.migration.linear
Class MatrixDimensionMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.hipparchus.exception.MathRuntimeException
-
- org.hipparchus.exception.MathIllegalArgumentException
-
- org.hipparchus.migration.exception.MultiDimensionMismatchException
-
- org.hipparchus.migration.linear.MatrixDimensionMismatchException
-
- All Implemented Interfaces:
Serializable
,LocalizedException
@Deprecated public class MatrixDimensionMismatchException extends MultiDimensionMismatchException
Deprecated.as of 1.0, this exception is replaced byMathIllegalArgumentException
Exception to be thrown when either the number of rows or the number of columns of a matrix do not match the expected values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixDimensionMismatchException(int wrongRowDim, int wrongColDim, int expectedRowDim, int expectedColDim)
Deprecated.Construct an exception from the mismatched dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getExpectedColumnDimension()
Deprecated.int
getExpectedRowDimension()
Deprecated.int
getWrongColumnDimension()
Deprecated.int
getWrongRowDimension()
Deprecated.-
Methods inherited from class org.hipparchus.migration.exception.MultiDimensionMismatchException
getExpectedDimension, getExpectedDimensions, getWrongDimension, getWrongDimensions
-
Methods inherited from class org.hipparchus.exception.MathRuntimeException
createInternalError, createInternalError, getLocalizedMessage, getMessage, getMessage, getParts, getSpecifier
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MatrixDimensionMismatchException
public MatrixDimensionMismatchException(int wrongRowDim, int wrongColDim, int expectedRowDim, int expectedColDim)
Deprecated.Construct an exception from the mismatched dimensions.- Parameters:
wrongRowDim
- Wrong row dimension.wrongColDim
- Wrong column dimension.expectedRowDim
- Expected row dimension.expectedColDim
- Expected column dimension.
-
-
Method Detail
-
getWrongRowDimension
public int getWrongRowDimension()
Deprecated.- Returns:
- the expected row dimension.
-
getExpectedRowDimension
public int getExpectedRowDimension()
Deprecated.- Returns:
- the expected row dimension.
-
getWrongColumnDimension
public int getWrongColumnDimension()
Deprecated.- Returns:
- the wrong column dimension.
-
getExpectedColumnDimension
public int getExpectedColumnDimension()
Deprecated.- Returns:
- the expected column dimension.
-
-