Skip to content

Commit 97de442

Browse files
committed
Add core/hess_orth.
1 parent 65f9843 commit 97de442

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

core/private/Contents.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
% gfpp - Matrix giving maximal growth for Gaussian elim. with pivoting.
1515
% hessfull01 - Totally nonnegative lower Hessenberg Toeplitz matrix.
1616
% hessmaxdet - Upper Hessenberg matrix with maximal determinant.
17+
% hess_orth - Lower Hessenberg matrix with orthogonal columns.
1718
% hess_sublu - Upper Hessengerg matrix giving subnormal numbers in LU factor.
1819
% indef - Symmetric indefinite matrix with known inertia.
1920
% kms_nonsymm - Nonsymmetric Kac-Murdock-Szego Toeplitz matrix.

core/private/hess_orth.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function [A,properties] = hess_orth(n)
2+
%HESS_ORTH Lower Hessenberg matrix with orthogonal columns.
3+
% A = HESS_ORTH(n) is an n-by-n lower Hessenberg matrix with
4+
% integer elements and orthogonal columns.
5+
6+
% Reference:
7+
% S. K. Godunov, A. G. Antonov, O. P. Kiriljuk, and V. I. Kostin,
8+
% Guaranteed Accuracy in Numerical Linear Algebra,
9+
% Kluwer Academic Publishers, Dordrecht, The Netherlands, 1993, p. 480.
10+
11+
properties = {'hessenberg', 'integer'};
12+
if nargin == 0, A = []; return, end
13+
14+
A = tril(ones(n));
15+
for j = 1:n-1
16+
A(j,j+1) = -(n-j);
17+
end

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The following matrices have been added since v1.0.
2525
- core/circul_binom
2626
- core/collatz
2727
- core/cross
28+
- core/hess_orth
2829
- core/hess_sublu
2930
- core/indef
3031
- core/milnes

0 commit comments

Comments
 (0)