Modifier and Type | Method and Description |
---|---|
static double |
checkDeterminantForInverse(double det)
Check that the given determinant is valid for use in calculating a matrix
inverse.
|
static double |
checkElementForInverse(double element)
Check that the given matrix element is valid for use in calculation of
a matrix inverse, throwing an
IllegalStateException if not. |
static double |
determinant(double a00,
double a01,
double a10,
double a11)
Compute the determinant of the 2x2 matrix represented by the given values.
|
static double |
determinant(double a00,
double a01,
double a02,
double a10,
double a11,
double a12,
double a20,
double a21,
double a22)
Compute the determinant of the 3x3 matrix represented by the given values.
|
public static double determinant(double a00, double a01, double a10, double a11)
a00
- matrix entry a0,0
a01
- matrix entry a0,1
a10
- matrix entry a1,0
a11
- matrix entry a1,1
public static double determinant(double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22)
a00
- matrix entry a0,0
a01
- matrix entry a0,1
a02
- matrix entry a0,2
a10
- matrix entry a1,0
a11
- matrix entry a1,1
a12
- matrix entry a1,2
a20
- matrix entry a2,0
a21
- matrix entry a2,1
a22
- matrix entry a2,2
public static double checkDeterminantForInverse(double det)
IllegalStateException
is thrown if the determinant is
NaN, infinite, or zero.det
- the determinant to checkIllegalStateException
- if the matrix determinant value is NaN, infinite,
or zeropublic static double checkElementForInverse(double element)
IllegalStateException
if not.element
- matrix entry to checkIllegalStateException
- if the element is not valid for use
in calculating a matrix inverse, ie if it is NaN or infinite.Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.