Skip to content

Commit d75ac03

Browse files
committed
Some more deprecation fixes
1 parent 0520479 commit d75ac03

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

src/MultivariateOrthogonalPolynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ __precompile__()
33
module MultivariateOrthogonalPolynomials
44
using Base, RecipesBase, ApproxFun, BandedMatrices, BlockArrays,
55
FastTransforms, FastGaussQuadrature, StaticArrays, FillArrays,
6-
Libdl, SpecialFunctions
6+
LinearAlgebra, Libdl, SpecialFunctions
77

88
# package code goes here
99
import Base: values,getindex,setindex!,*,.*,+,.+,-,.-,==,<,<=,>,

src/Triangle.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,21 +388,21 @@ function clenshaw2D(Jx,Jy,cfs::Vector{Vector{T}},x,y) where T
388388
resize!(Abk2x,Int(K))
389389
BLAS.blascopy!(Int(K),bk1,1,Abk2x,1)
390390
resize!(Abk2y,Int(K))
391-
Abk2y[1:Int(K)-1]=0
392-
Abk2y[end]=bk1[Int(K)+1]
391+
Abk2y[1:Int(K)-1] .= 0
392+
Abk2y[end] = bk1[Int(K)+1]
393393

394394
Abk1x,Abk2x=Abk2x,Abk1x
395395
Abk1y,Abk2y=Abk2y,Abk1y
396396

397397
bk2 = bk1 ::Vector{T}
398398

399399
bk1 = (x*Abk1x) ::Vector{T}
400-
Base.axpy!(y,Abk1y,bk1)
400+
LinearAlgebra.axpy!(y,Abk1y,bk1)
401401
mul!(bk1,Bx,Abk1x,-one(T),one(T))
402402
mul!(bk1,By,Abk1y,-one(T),one(T))
403403
mul!(bk1,Cx,Abk2x,-one(T),one(T))
404404
mul!(bk1,Cy,Abk2y,-one(T),one(T))
405-
Base.axpy!(one(T),cfs[Int(K)],bk1)
405+
LinearAlgebra.axpy!(one(T),cfs[Int(K)],bk1)
406406
end
407407

408408
K = Block(1)

test/TriangleTest.jl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,36 @@ ncoefficients(f)
100100

101101
cjt
102102

103+
f = Fun((x,y) -> cos(100x*y), KoornwinderTriangle(0.0,0.0,0.0))
104+
plot(f)
105+
106+
ncoefficients(f)
107+
108+
109+
@time f = Fun((x,y) -> cos(100x*y), Triangle(),100)
110+
@time g = Laplacian()*f
111+
34
112+
ncoefficients(f)
113+
114+
@which Derivative([1,0])*f
115+
116+
@which ApproxFun.mul_coefficients(view(L,1:ncoefficients(f), 1:ncoefficients(f)),
117+
f.coefficients)
118+
119+
using BlockBandedMatrices
120+
V = view(L,1:ncoefficients(f), 1:ncoefficients(f))
121+
@which AbstractMatrix(V)
122+
123+
124+
L = Derivative([1,0]) : space(f); N = 100
125+
@time L[Block.(1:N), Block.(1:N)]
126+
127+
ncoefficients(f)
128+
plot(g)
129+
130+
131+
132+
103133
@time f = Fun((x,y)->cos(100x*y),KoornwinderTriangle(0.0,-0.5,-0.5)); # 1.15s
104134
@time f = Fun((x,y)->cos(500x*y),KoornwinderTriangle(0.0,-0.5,-0.5),40_000); # 0.2
105135
@test f(0.1,0.2) cos(500*0.1*0.2)

0 commit comments

Comments
 (0)