Skip to content

Commit cbbbe92

Browse files
committed
typos
1 parent d1f83d7 commit cbbbe92

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/func.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ function _sizecheck(L::FunctionOperator, u, v)
554554
if !isnothing(v)
555555
if size(v) != L.traits.sizes[2]
556556
msg = """$L expects input arrays of size $(L.traits.sizes[1]).
557-
Recievd array of size $(size(u))."""
557+
Recievd array of size $(size(v))."""
558558
DimensionMismatch(msg) |> throw
559559
end
560560
end
@@ -570,7 +570,7 @@ function _sizecheck(L::FunctionOperator, u, v)
570570
if !isnothing(v)
571571
if size(v) != L.traits.sizes[2]
572572
msg = """$L expects input arrays of size $(L.traits.sizes[1]).
573-
Recievd array of size $(size(u))."""
573+
Recievd array of size $(size(v))."""
574574
DimensionMismatch(msg) |> throw
575575
end
576576
end
@@ -630,8 +630,7 @@ function LinearAlgebra.mul!(v::AbstractArray, L::FunctionOperator{true, oop, fal
630630

631631
copy!(co, v)
632632
mul!(v, L, u)
633-
lmul!(α, v)
634-
axpy!(β, co, v)
633+
axpby!(β, co, α, v)
635634
end
636635

637636
function LinearAlgebra.mul!(v::AbstractArray, L::FunctionOperator{true, oop, true}, u::AbstractArray, α, β) where{oop}
@@ -651,8 +650,6 @@ end
651650
function LinearAlgebra.ldiv!(L::FunctionOperator{true}, u::AbstractArray)
652651
ci, _ = L.cache
653652

654-
_sizecheck(L, nothing, u)
655-
656653
copy!(ci, u)
657654
ldiv!(u, L, ci)
658655
end

0 commit comments

Comments
 (0)