<hilbert-matrix> ( m n -- matrix )
Extra matrix operations

Prev:<hankel-matrix> ( n -- matrix )
Next:<toeplitz-matrix> ( n -- matrix )


Vocabulary
math.matrices.extras

Inputs
man integer
nan integer


Outputs
matrixa matrix


Word description
A Hilbert matrix is a square-matrix A in which entries are the unit fractions A[i][j] = 1/(i+j-1). See hilbert matrix.

A Hilbert matrix is a special case of the <hankel-matrix>.

Examples
USING: math.matrices.extras prettyprint ; 1 2 <hilbert-matrix> .
{ { 1 1/2 } }

USING: math.matrices.extras prettyprint ; 3 6 <hilbert-matrix> .
{ { 1 1/2 1/3 1/4 1/5 1/6 } { 1/2 1/3 1/4 1/5 1/6 1/7 } { 1/3 1/4 1/5 1/6 1/7 1/8 } }


Definition