Skip to content

Commit ec73bd2

Browse files
committed
Fix incorrect ordering of output and input types
1 parent 77a0a45 commit ec73bd2

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

src/func.jl

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ function Base.adjoint(L::FunctionOperator{iip, oop, mul5, T, F, Fa, Fi, Fai, Tr,
474474

475475
return FunctionOperator{iip, oop, mul5, T, typeof(op), typeof(op_adjoint),
476476
typeof(op_inverse), typeof(op_adjoint_inverse), typeof(traits), P, Tt,
477-
typeof(cache), iType, oType}(op, op_adjoint, op_inverse, op_adjoint_inverse, traits,
477+
typeof(cache), oType, iType}(op, op_adjoint, op_inverse, op_adjoint_inverse, traits,
478478
L.p, L.t, cache)
479479
end
480480

@@ -503,7 +503,7 @@ function Base.inv(L::FunctionOperator{iip, oop, mul5, T, F, Fa, Fi, Fai, Tr, P,
503503

504504
return FunctionOperator{iip, oop, mul5, T, typeof(op), typeof(op_adjoint),
505505
typeof(op_inverse), typeof(op_adjoint_inverse), typeof(traits), P, Tt,
506-
typeof(cache), iType, oType}(op, op_adjoint, op_inverse, op_adjoint_inverse, traits,
506+
typeof(cache), oType, iType}(op, op_adjoint, op_inverse, op_adjoint_inverse, traits,
507507
L.p, L.t, cache)
508508
end
509509

@@ -691,18 +691,13 @@ function LinearAlgebra.mul!(v::AbstractArray, L::FunctionOperator{true}, u::Abst
691691
vec_output ? vec(V) : V
692692
end
693693

694-
function LinearAlgebra.mul!(::AbstractArray,
695-
L::FunctionOperator{false},
696-
::AbstractArray,
694+
function LinearAlgebra.mul!(::AbstractArray, L::FunctionOperator{false}, ::AbstractArray,
697695
args...)
698696
@error "LinearAlgebra.mul! not defined for out-of-place operator $L"
699697
end
700698

701-
function LinearAlgebra.mul!(v::AbstractArray,
702-
L::FunctionOperator{true, oop, false},
703-
u::AbstractArray,
704-
α,
705-
β) where {oop}
699+
function LinearAlgebra.mul!(v::AbstractArray, L::FunctionOperator{true, oop, false},
700+
u::AbstractArray, α, β) where {oop}
706701
_, Co = L.cache
707702

708703
_sizecheck(L, u, v)
@@ -715,11 +710,8 @@ function LinearAlgebra.mul!(v::AbstractArray,
715710
v
716711
end
717712

718-
function LinearAlgebra.mul!(v::AbstractArray,
719-
L::FunctionOperator{true, oop, true},
720-
u::AbstractArray,
721-
α,
722-
β) where {oop}
713+
function LinearAlgebra.mul!(v::AbstractArray, L::FunctionOperator{true, oop, true},
714+
u::AbstractArray, α, β) where {oop}
723715
_sizecheck(L, u, v)
724716
U, V, _ = _unvec(L, u, v)
725717

0 commit comments

Comments
 (0)