Skip to content

Commit 146ed7b

Browse files
committed
Add Semiseparable
1 parent 0c91e07 commit 146ed7b

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ LazyArrays = "5078a376-72f3-5289-bfd5-ec5146d43c02"
1313
LazyBandedMatrices = "d7e5e226-e90b-4449-9968-0f923699bf6f"
1414
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1515
MatrixFactorizations = "a3b82374-2e81-5b9e-98ce-41277c0e4c87"
16+
SemiseparableMatrices = "f8ebbe35-cbfb-4060-bf7f-b10e4670cf57"
1617

1718
[compat]
18-
ArrayLayouts = "0.1"
19-
BandedMatrices = "0.14"
19+
ArrayLayouts = "0.1, 0.2"
20+
BandedMatrices = "0.14, 0.15"
2021
BlockArrays = "0.11"
2122
BlockBandedMatrices = "0.7.1"
2223
FillArrays = "0.8.4"
23-
InfiniteArrays = "0.6.1"
24+
InfiniteArrays = "0.6.1, 0.7"
2425
LazyArrays = "0.15"
2526
LazyBandedMatrices = "0.2"
26-
MatrixFactorizations = "0.2"
2727
julia = "1.3"
2828

2929
[extras]

src/InfiniteLinearAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module InfiniteLinearAlgebra
2-
using BlockArrays, BlockBandedMatrices, BandedMatrices, LazyArrays, LazyBandedMatrices,
2+
using BlockArrays, BlockBandedMatrices, BandedMatrices, LazyArrays, LazyBandedMatrices, SemiseparableMatrices,
33
FillArrays, InfiniteArrays, MatrixFactorizations, ArrayLayouts, LinearAlgebra
44

55
import Base: +, -, *, /, \, ^, OneTo, getindex, promote_op, _unsafe_getindex, print_matrix_row, size, axes,

test/test_infqr.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using InfiniteLinearAlgebra, LinearAlgebra, BandedMatrices, InfiniteArrays, MatrixFactorizations, LazyArrays, FillArrays, SpecialFunctions, Test
2-
import LazyArrays: colsupport, rowsupport, MemoryLayout, DenseColumnMajor, TriangularLayout, resizedata!
2+
import LazyArrays: colsupport, rowsupport, MemoryLayout, DenseColumnMajor, TriangularLayout, resizedata!, arguments
33
import LazyBandedMatrices: BroadcastBandedLayout
44
import BandedMatrices: _BandedMatrix, _banded_qr!, BandedColumns
55
import InfiniteLinearAlgebra: partialqr!, AdaptiveQRData, AdaptiveLayout
6+
import SemiseparableMatrices: AlmostBandedLayout
67

78

89
@testset "Adaptive QR" begin
@@ -132,4 +133,11 @@ import InfiniteLinearAlgebra: partialqr!, AdaptiveQRData, AdaptiveLayout
132133
@test F.Q[1:10,1:10] == Eye(10)
133134
@test F.R[1:10,1:10] == A[1:10,1:10]
134135
end
136+
137+
@testset "almost-banded" begin
138+
A = Vcat(Ones(1,∞), BandedMatrix(0 => -Ones(∞), 1 => 1:∞))
139+
@test MemoryLayout(typeof(A)) == AlmostBandedLayout()
140+
B,C = arguments(A)
141+
142+
end
135143
end

0 commit comments

Comments
 (0)