Skip to content

Commit 8c7811e

Browse files
authored
remove unnecessary type assertions (#175)
* remove unnecessary type assertions * import BandedMatrix
1 parent 3be059c commit 8c7811e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Operators/general/algebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ for TYP in (:Matrix, :BandedMatrix, :RaggedMatrix)
404404
BA = strictconvert(RT, P.ops[m][krl[m,1]:krl[m,2],krl[m+1,1]:krl[m+1,2]]) * BA
405405
end
406406

407-
RT(BA)::RT2
407+
RT(BA)
408408
end
409409
end
410410

test/SpacesTest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using ApproxFunBase, Test
22
import ApproxFunBase: PointSpace, HeavisideSpace, PiecewiseSegment, dimension, Vec, checkpoints
33
using ApproxFunOrthogonalPolynomials
44
using StaticArrays
5-
using BandedMatrices: rowrange, colrange
5+
using BandedMatrices: rowrange, colrange, BandedMatrix
66

77
@testset "Spaces" begin
88
@testset "PointSpace" begin
@@ -364,6 +364,7 @@ using BandedMatrices: rowrange, colrange
364364
S = @view D[1:10, 1:10]
365365
@test rowrange(S, 1) == 2:2
366366
@test colrange(S, 2) == 1:1
367+
@test (@inferred BandedMatrix(S)) == (@inferred Matrix(S))
367368
end
368369
end
369370
end

0 commit comments

Comments
 (0)