Skip to content

Commit 5eea2fb

Browse files
committed
Move out BandedMatrices code
1 parent 73df745 commit 5eea2fb

File tree

5 files changed

+5
-778
lines changed

5 files changed

+5
-778
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "InfiniteLinearAlgebra"
22
uuid = "cde9dba0-b1de-11e9-2c62-0bab9446c55c"
3-
version = "0.8.5"
3+
version = "0.9"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -23,7 +23,7 @@ BandedMatrices = "1.7.2"
2323
BlockArrays = "1.0"
2424
BlockBandedMatrices = "0.13"
2525
FillArrays = "1.0"
26-
InfiniteArrays = "0.14"
26+
InfiniteArrays = "0.15"
2727
InfiniteRandomArrays = "0.2"
2828
Infinities = "0.1"
2929
LazyArrays = "2.0"

src/InfiniteLinearAlgebra.jl

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,11 @@ import MatrixFactorizations: AdjQLPackedQLayout, LayoutQ, QL, QLPackedQ, QLPacke
5353
ul!, ul_layout
5454

5555
import SemiseparableMatrices: AbstractAlmostBandedLayout, _almostbanded_qr!
56-
57-
58-
LinearAlgebra._cut_B(x::AbstractVector, ::InfUnitRange) = x
59-
LinearAlgebra._cut_B(X::AbstractMatrix, ::InfUnitRange) = X
60-
61-
62-
if VERSION v"1.11.0-DEV.21"
63-
using LinearAlgebra: UpperOrLowerTriangular
64-
else
65-
const UpperOrLowerTriangular{T,S} = Union{LinearAlgebra.UpperTriangular{T,S},
66-
LinearAlgebra.UnitUpperTriangular{T,S},
67-
LinearAlgebra.LowerTriangular{T,S},
68-
LinearAlgebra.UnitLowerTriangular{T,S}}
69-
end
70-
56+
import InfiniteArrays: UpperOrLowerTriangular
7157

7258
# BroadcastStyle(::Type{<:BandedMatrix{<:Any,<:Any,<:OneToInf}}) = LazyArrayStyle{2}()
7359

74-
function ArrayLayouts._power_by_squaring(_, ::NTuple{2,InfiniteCardinal{0}}, A::AbstractMatrix{T}, p::Integer) where T
75-
if p < 0
76-
inv(A)^(-p)
77-
elseif p == 0
78-
Eye{T}(∞)
79-
elseif p == 1
80-
copy(A)
81-
else
82-
A*A^(p-1)
83-
end
84-
end
60+
8561

8662
function choplength(c::AbstractVector, tol)
8763
@inbounds for k = length(c):-1:1
@@ -128,7 +104,7 @@ pad(c::Transpose, ax, bx) = transpose(pad(parent(c), bx, ax))
128104
pad(c::Adjoint, ax, bx) = adjoint(pad(parent(c), bx, ax))
129105
pad(c::BlockVec, ax::BlockedOneTo{Int,<:InfStepRange}) = BlockVec(pad(c.args[1], size(c.args[1],1), ∞))
130106

131-
export Vcat, Fill, ql, ql!, ∞, ContinuousSpectrumError, BlockTridiagonal
107+
export ∞, ContinuousSpectrumError, BlockTridiagonal
132108

133109
include("banded/hessenbergq.jl")
134110

0 commit comments

Comments
 (0)