<< makematrix_border Makematrix makematrix_circul >>

Makematrix >> Makematrix > makematrix_cauchy

makematrix_cauchy

Returns the Cauchy matrix

Calling Sequence

A = makematrix_cauchy ( x )
A = makematrix_cauchy ( x , y )

Parameters

x :

a 1-by-n or n-by-1 matrix of doubles, the x input

y :

a 1-by-n or n-by-1 matrix of doubles, the y input (default y=x)

A :

a n-by-n matrix of doubles, the Cauchy matrix

Description

Returns the Cauchy matrix of size n with entries x, y

For i=1,2,...,n and j=1,2,...,n, we have: A(i,j) = 1 ./ (x(i) + y(j))

Examples

A = makematrix_cauchy ( 1:5 )
A = makematrix_cauchy ( 1:5 , 6:10 )

Authors

Bibliography

Nicolas Higham, Accuracy and Stability of Numerical Algorithms, A Gallery of Test Matrices


Report an issue
<< makematrix_border Makematrix makematrix_circul >>