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

public Class NonPositiveDefiniteMatrixException

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

Exception to be thrown when a positive definite matrix is expected.
Since
3.0

Field Summary

Modifier and TypeField and Description
private final int
index

Index (diagonal element).

private static final long
private final double
threshold

Threshold.

Constructor Summary

AccessConstructor and Description
public
NonPositiveDefiniteMatrixException(double
Value that fails the positivity check.
wrong
,
int
Row (and column) index.
index
,
double
Absolute positivity threshold.
threshold
)

Construct an exception.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the column index.
getColumn
()

public int

Returns:

the row index.
getRow
()

public double

Returns:

the absolute positivity threshold.
getThreshold
()

Inherited from org.apache.commons.math3.exception.NumberIsTooSmallException:
getBoundIsAllowedgetMin

Field Detail

indexback to summary
private final int index

Index (diagonal element).

serialVersionUIDback to summary
private static final long serialVersionUID

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

Serializable version Id.

thresholdback to summary
private final double threshold

Threshold.

Constructor Detail

NonPositiveDefiniteMatrixExceptionback to summary
public NonPositiveDefiniteMatrixException(double wrong, int index, double threshold)

Construct an exception.

Parameters
wrong:double

Value that fails the positivity check.

index:int

Row (and column) index.

threshold:double

Absolute positivity threshold.

Method Detail

getColumnback to summary
public int getColumn()
Returns:int

the column index.

getRowback to summary
public int getRow()
Returns:int

the row index.

getThresholdback to summary
public double getThreshold()
Returns:double

the absolute positivity threshold.