In [171]:
cd("../src")
include("TriPMatrices.jl")
Out[171]:
In [172]:
n = 6
D = [linspace(1,n,n);] + 5.0
Dl = [linspace(1,n,n);] + 1.0
Du = [linspace(1,n,n);] + 2.0
M = TriPMatrices.TridiagonalP(Dl, D, Du)
Out[172]:
In [173]:
Mf = full(M)
Out[173]:
In [174]:
maxabs(inv(Mf) - inv(M))
Out[174]:
In [175]:
{S = TriPMatrices.SymTridiagonalP(D, Du)}
Out[175]:
In [176]:
iS = TriPMatrices.cholfact!(copy(S))
Out[176]:
In [ ]:
In [ ]: