Top Description Fields Constructors Methods
org.apache.commons.math3.linear

public Class MatrixDimensionMismatchException

extends MultiDimensionMismatchException
Class Inheritance
Imports
org.apache.commons.math3.exception.MultiDimensionMismatchException, org.apache.commons.math3.exception.util.LocalizedFormats

Exception to be thrown when either the number of rows or the number of columns of a matrix do not match the expected values.
Since
3.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
MatrixDimensionMismatchException(int
Wrong row dimension.
wrongRowDim
,
int
Wrong column dimension.
wrongColDim
,
int
Expected row dimension.
expectedRowDim
,
int
Expected column dimension.
expectedColDim
)

Construct an exception from the mismatched dimensions.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the expected column dimension.
getExpectedColumnDimension
()

public int

Returns:

the expected row dimension.
getExpectedRowDimension
()

public int

Returns:

the wrong column dimension.
getWrongColumnDimension
()

public int

Returns:

the expected row dimension.
getWrongRowDimension
()

Inherited from org.apache.commons.math3.exception.MultiDimensionMismatchException:
getExpectedDimensiongetExpectedDimensionsgetWrongDimensiongetWrongDimensions

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.math3.exception.MultiDimensionMismatchException.serialVersionUID.

Serializable version Id.

Constructor Detail

MatrixDimensionMismatchExceptionback to summary
public MatrixDimensionMismatchException(int wrongRowDim, int wrongColDim, int expectedRowDim, int expectedColDim)

Construct an exception from the mismatched dimensions.

Parameters
wrongRowDim:int

Wrong row dimension.

wrongColDim:int

Wrong column dimension.

expectedRowDim:int

Expected row dimension.

expectedColDim:int

Expected column dimension.

Method Detail

getExpectedColumnDimensionback to summary
public int getExpectedColumnDimension()
Returns:int

the expected column dimension.

getExpectedRowDimensionback to summary
public int getExpectedRowDimension()
Returns:int

the expected row dimension.

getWrongColumnDimensionback to summary
public int getWrongColumnDimension()
Returns:int

the wrong column dimension.

getWrongRowDimensionback to summary
public int getWrongRowDimension()
Returns:int

the expected row dimension.