<< makematrix_magic Makematrix makematrix_normal >>

Makematrix >> Makematrix > makematrix_moler

makematrix_moler

Returns the Moler matrix

Calling Sequence

A = makematrix_moler ( n )

Parameters

n :

a 1-by-1 matrix of doubles, integer value, the size of the matrix to return

A :

a n-by-n matrix of doubles, integer values

Description

Returns the Moler matrix of size n Positive definite, one small eigenvalue.

If i==j, then A(i,j) = i

else A(i,j) = min(i,j)-2

Examples

A = makematrix_moler ( 5 )

Authors

Bibliography

J.C. Nash, Compact Numerical Methods for Computers: Linear Algebra and Function Minimisation, second edition, Adam Hilger, Bristol, 1990 (Appendix 1).


Report an issue
<< makematrix_magic Makematrix makematrix_normal >>