Skip to content

Commit 9c29c6e

Browse files
authored
Distinguish between BLAS and LinearAlgebra axpy (#329)
1 parent 265e267 commit 9c29c6e

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.github/workflows/downstream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: true
2929
matrix:
30-
julia-version: [1, 1.6]
30+
julia-version: ['1', '1.6', '~1.9.0-0']
3131
os: [ubuntu-latest]
3232
package:
3333
- {repo: ApproxFun.jl, group: JuliaApproximation}

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.7.52"
3+
version = "0.7.53"
44

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

src/LinearAlgebra/RaggedMatrix.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ function unsafe_mul!(Y::RaggedMatrix,A::RaggedMatrix,B::RaggedMatrix)
226226
fill!(Y.data,0)
227227

228228
for j=1:size(B,2),k=1:colstop(B,j)
229-
BLAS.axpy!(B[k,j],view(A,1:colstop(A,k),k),view(Y.data,Y.cols[j] .- 1 .+ (1:colstop(A,k))))
229+
LinearAlgebra.axpy!(B[k,j], view(A,1:colstop(A,k),k),
230+
view(Y.data,Y.cols[j] .- 1 .+ (1:colstop(A,k))))
230231
end
231232

232233
Y

src/Operators/general/InterlaceOperator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ for TYP in (:BandedMatrix, :BlockBandedMatrix, :BandedBlockBandedMatrix, :Ragged
349349
if !isempty(ret_kr)
350350
sub_kr=cr[ret_kr[1]][2]:cr[ret_kr[end]][2]
351351

352-
LinearAlgebra.axpy!(1.0,view(L.ops[ν],sub_kr,jr),view(ret,ret_kr,:))
352+
BLAS.axpy!(1.0,view(L.ops[ν],sub_kr,jr),view(ret,ret_kr,:))
353353
end
354354
end
355355
ret
@@ -380,7 +380,7 @@ for TYP in (:BandedMatrix, :BlockBandedMatrix, :BandedBlockBandedMatrix, :Ragged
380380
sub_kr=cr[ret_kr[1]][2]:cr[ret_kr[end]][2]
381381
sub_jr=cd[ret_jr[1]][2]:cd[ret_jr[end]][2]
382382

383-
LinearAlgebra.axpy!(1.0,view(L.ops[ν,μ],sub_kr,sub_jr),
383+
BLAS.axpy!(1.0,view(L.ops[ν,μ],sub_kr,sub_jr),
384384
view(ret,ret_kr,ret_jr))
385385
end
386386
end

src/constructors.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ Fun(c::Number,d::Domain) = c==0 ? c*zeros(d) : c*ones(d)
9595
Fun(c::Number,d::Space) = c==0 ? c*zeros(prectype(d),d) : c*ones(prectype(d),d)
9696

9797
## Adaptive constructors
98+
if VERSION >= v"1.9.0-"
99+
_splat(f) = Base.Splat(f)
100+
else
101+
_splat(f) = Base.splat(f)
102+
end
98103
function default_Fun(f, d::Space)
99-
_default_Fun(hasnumargs(f, 1) ? f : Base.splat(f), d)
104+
_default_Fun(hasnumargs(f, 1) ? f : _splat(f), d)
100105
end
101106
# In _default_Fun, we know that the function takes a single argument
102107
function _default_Fun(f, d::Space)

0 commit comments

Comments
 (0)