Skip to content

Commit 54afbcb

Browse files
authored
Impove type inference in RaggedMatrix constructor (#520)
1 parent be4ddef commit 54afbcb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.9.0"
3+
version = "0.9.1"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/Operators/SubOperator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ for TYP in (:RaggedMatrix, :Matrix)
355355
N = block(rangespace(A), last(parentindices(V)[1]))
356356
M = block(domainspace(A), last(parentindices(V)[2]))
357357
B = A[Block(1):N, Block(1):M]
358-
RaggedMatrix(view(B, parentindices(V)...), _colstops(V))
358+
RaggedMatrix{eltype(V)}(view(B, parentindices(V)...), _colstops(V))
359359
else
360360
$def_TYP(V)
361361
end

0 commit comments

Comments
 (0)