Hilbert: Generate Hilbert Matrices

View source: R/ddmatrix_special.r

HilbertR Documentation

Generate Hilbert Matrices

Description

Methods for constructing Hilbert matrices: H[i,j] = 1/(i+j-1)

Usage

Hilbert(
  n,
  type = "matrix",
  ...,
  bldim = .pbd_env$BLDIM,
  ICTXT = .pbd_env$ICTXT
)

Arguments

n

number of rows and columns.

type

"matrix" or "ddmatrix".

...

Additional arguments.

bldim

blocking dimension.

ICTXT

BLACS context number.

Details

This constructs the square Hilbert matrix of order n. The return is either a matrix or a distributed matrix depending on the argument type=.

Value

Returns a matrix or a distributed matrix.


wrathematics/pbdDMAT documentation built on Oct. 2, 2024, 2:56 p.m.