We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e45266 commit 4e35ff9Copy full SHA for 4e35ff9
Project.toml
@@ -1,6 +1,6 @@
1
name = "ApproxFunBase"
2
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3
-version = "0.9.7"
+version = "0.9.8"
4
5
[deps]
6
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
src/Operators/SubOperator.jl
@@ -378,18 +378,18 @@ end
378
379
380
function mul_coefficients(A::SubOperator{<:Any,<:Any,NTuple{2,UnitRange{Int}}}, b)
381
- if size(A,2) == length(b)
+ if size(A,2) == size(b,1)
382
AbstractMatrix(A)*b
383
else
384
- AbstractMatrix(view(A,:,1:length(b)))*b
+ AbstractMatrix(view(A,:,axes(b,1)))*b
385
end
386
387
function mul_coefficients!(A::SubOperator{<:Any,<:Any,NTuple{2,UnitRange{Int}}}, b,
388
temp = similar(b, promote_type(eltype(A), eltype(b)), size(A,1)))
389
390
mul!(temp, AbstractMatrix(A), b)
391
392
- mul!(temp, AbstractMatrix(view(A,:,1:length(b))), b)
+ mul!(temp, AbstractMatrix(view(A,:,axes(b,1))), b)
393
394
b .= temp
395
return b
0 commit comments