Skip to content

Commit

Permalink
Show Strang LDL'
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Jan 2, 2023
1 parent 66ef97e commit 65608c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/lit/examples/1-overview.jl
Expand Up @@ -23,6 +23,7 @@ Toeplitz, Hankel, and circulant matrices.

using SpecialMatrices
using Polynomials
using LinearAlgebra: factorize, Diagonal


# ## [`Cauchy` matrix](http://en.wikipedia.org/wiki/Cauchy_matrix)
Expand Down Expand Up @@ -111,7 +112,14 @@ Riemann(5)
A special symmetric, tridiagonal, Toeplitz matrix named after Gilbert Strang.
=#

Strang(5)
S = Strang(5)

# The Strang matrix has a special ``L D L'`` factorization:
F = factorize(S)

# Here is a verification:
F.L * Diagonal(F.D) * F.L'


# ## [`Vandermonde` matrix](http://en.wikipedia.org/wiki/Vandermonde_matrix)

Expand Down

0 comments on commit 65608c1

Please sign in to comment.