Skip to content

Commit 69a53cf

Browse files
committed
MatrixFactorizations v0.2
1 parent 8dce3b8 commit 69a53cf

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ BlockBandedMatrices = "0.5"
2020
FillArrays = "0.7"
2121
InfiniteArrays = "0.2"
2222
LazyArrays = "0.11"
23-
MatrixFactorizations = "0.1"
23+
MatrixFactorizations = "0.2"
2424
julia = "1"
2525

2626
[extras]

test/test_infqr.jl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1-
using InfiniteLinearAlgebra, LinearAlgebra, BandedMatrices, InfiniteArrays, FillArrays
1+
using InfiniteLinearAlgebra, LinearAlgebra, BandedMatrices, InfiniteArrays, MatrixFactorizations, LazyArrays, FillArrays
22
import BandedMatrices: _BandedMatrix, colsupport
3+
import MatrixFactorizations: QR
4+
import LazyArrays: CachedMatrix
5+
6+
struct AdaptiveQRFactors{T,DM<:CachedMatrix{T}} <: AbstractMatrix{T}
7+
factors::DM
8+
τ::Vector{T}
9+
end
10+
11+
struct AdaptiveQRTau{T,DM<:CachedMatrix{T}} <: AbstractMatrix{T}
12+
factors::DM
13+
τ::Vector{T}
14+
end
315

416

517
A = _BandedMatrix(Vcat(Ones(1,∞), (1:∞)', Ones(1,∞)), ∞, 1, 1)
618
C = cache(A)
19+
20+
721
V = view(C.data,1:10,1:11)
822
V isa BandedMatrices.BandedSubBandedMatrix
923
qr!(V)

0 commit comments

Comments
 (0)