Class HilbertMatrix
- java.lang.Object
-
- dev.nm.algebra.linear.matrix.doubles.matrixtype.dense.triangle.SymmetricMatrix
-
- dev.nm.algebra.linear.matrix.doubles.matrixtype.HilbertMatrix
-
- All Implemented Interfaces:
Matrix
,MatrixAccess
,MatrixRing
,MatrixTable
,Densifiable
,AbelianGroup<Matrix>
,Monoid<Matrix>
,Ring<Matrix>
,Table
,DeepCopyable
public class HilbertMatrix extends SymmetricMatrix
A Hilbert matrix, H, is a symmetric matrix with entries being the unit fractionsH[i][j] = 1 / (i + j -1)
- See Also:
- Wikipedia: Hilbert matrix
-
-
Constructor Summary
Constructors Constructor Description HilbertMatrix(int n)
Constructs a Hilbert matrix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
det()
The determinant of a Hilbert matrix is the reciprocal of an integer.BigInteger
invdet()
One over the determinant of H: 1/|H|, which is an integer.-
Methods inherited from class dev.nm.algebra.linear.matrix.doubles.matrixtype.dense.triangle.SymmetricMatrix
add, deepCopy, equals, get, getColumn, getRow, hashCode, minus, multiply, multiply, nCols, nRows, ONE, opposite, scaled, set, t, toDense, toString, ZERO
-
-
-
-
Method Detail
-
invdet
public BigInteger invdet()
One over the determinant of H: 1/|H|, which is an integer.- Returns:
- one over the determinant of H, which is an integer
-
det
public double det()
The determinant of a Hilbert matrix is the reciprocal of an integer.- Returns:
- the determinant
- See Also:
- OEIS: sequence A005249
-
-