Skip to content

Commit 8e7f9bb

Browse files
fix tests
1 parent 7a3c3e4 commit 8e7f9bb

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

Project.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1717
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
1818
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
1919

20+
[weakdeps]
21+
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
22+
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
23+
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
24+
25+
[extensions]
26+
RecursiveArrayToolsMeasurementsExt = "Measurements"
27+
RecursiveArrayToolsTrackerExt = "Tracker"
28+
RecursiveArrayToolsZygoteExt = "Zygote"
29+
2030
[compat]
2131
Adapt = "3"
2232
ArrayInterface = "7"
@@ -31,11 +41,6 @@ Tables = "1"
3141
Zygote = "0.6.56"
3242
julia = "1.6"
3343

34-
[extensions]
35-
RecursiveArrayToolsMeasurementsExt = "Measurements"
36-
RecursiveArrayToolsTrackerExt = "Tracker"
37-
RecursiveArrayToolsZygoteExt = "Zygote"
38-
3944
[extras]
4045
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
4146
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
@@ -54,9 +59,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
5459
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5560

5661
[targets]
57-
test = ["SafeTestsets", "Aqua", "ForwardDiff", "LabelledArrays", "NLsolve", "OrdinaryDiffEq", "Pkg", "Test", "Unitful", "Random", "StaticArrays", "StructArrays", "Zygote", "Measurements"]
58-
59-
[weakdeps]
60-
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
61-
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
62-
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
62+
test = ["SafeTestsets", "Aqua", "ForwardDiff", "LabelledArrays", "NLsolve", "OrdinaryDiffEq", "Pkg", "Test", "Unitful", "Random", "StaticArrays", "StructArrays", "Zygote", "Measurements"]

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[deps]
2-
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
32
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
44

55
[compat]
66
Documenter = "0.27"

src/array_partition.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,15 @@ ArrayInterface.zeromatrix(A::ArrayPartition) = ArrayInterface.zeromatrix(Vector(
434434
function LinearAlgebra.ldiv!(A::Factorization, b::ArrayPartition)
435435
(x = ldiv!(A, Array(b)); copyto!(b, x))
436436
end
437+
438+
function LinearAlgebra.ldiv!(A::LinearAlgebra.SVD{T, Tr, M}, b::ArrayPartition) where {Tr, T, M<:AbstractArray{T}}
439+
(x = ldiv!(A, Array(b)); copyto!(b, x))
440+
end
441+
442+
function LinearAlgebra.ldiv!(A::LinearAlgebra.QRCompactWY{T, M, C}, b::ArrayPartition) where {T<:Union{Float32, Float64, ComplexF64, ComplexF32}, M<:AbstractMatrix{T}, C<:AbstractMatrix{T}}
443+
(x = ldiv!(A, Array(b)); copyto!(b, x))
444+
end
445+
437446
function LinearAlgebra.ldiv!(A::LU, b::ArrayPartition)
438447
LinearAlgebra._ipiv_rows!(A, 1:length(A.ipiv), b)
439448
ldiv!(UpperTriangular(A.factors), ldiv!(UnitLowerTriangular(A.factors), b))

src/vector_of_array.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ end
6767
Base.@pure __parameterless_type(T) = Base.typename(T).wrapper
6868

6969
@generated function issymbollike(x)
70-
x <: Union{Symbol, AllObserved} && return true
70+
x <: Union{Symbol, AllObserved} && return quote true end
7171
ss = ["Operation", "Variable", "Sym", "Num", "Term"]
7272
s = string(Symbol(__parameterless_type(x)))
73-
any(x -> occursin(x, s), ss)
73+
bool = any(x -> occursin(x, s), ss)
74+
quote
75+
$bool
76+
end
7477
end
7578

7679
function Base.Array(VA::AbstractVectorOfArray{T, N, A}) where {T, N,

0 commit comments

Comments
 (0)