Skip to content

Commit 45b5582

Browse files
committed
add inline
1 parent 9a9d8f1 commit 45b5582

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mul.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ function check_mul_axes(A::Union{QRCompactWYQ,QRPackedQ}, B, C...)
101101
check_mul_axes(B, C...)
102102
end
103103

104-
function instantiate(M::Mul)
104+
@inline function instantiate(M::Mul)
105105
@boundscheck check_mul_axes(M.A, M.B)
106106
M
107107
end
108108

109-
materialize(M::Mul) = copy(instantiate(M))
109+
@inline materialize(M::Mul) = copy(instantiate(M))
110110
@inline mul(A, B) = materialize(Mul(A,B))
111111

112-
copy(M::Mul) = copy(mulreduce(M))
112+
@inline copy(M::Mul) = copy(mulreduce(M))
113113
@inline copyto!(dest, M::Mul) = copyto!(dest, mulreduce(M))
114114
@inline copyto!(dest::AbstractArray, M::Mul) = copyto!(dest, mulreduce(M))
115115
mul!(dest::AbstractArray, A::AbstractArray, B::AbstractArray) = copyto!(dest, Mul(A,B))

0 commit comments

Comments
 (0)