You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: src/derivative_operators/derivative_operator_functions.jl
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
-
2
1
# Fallback mul! implementation for a single DerivativeOperator operating on an AbstractArray
3
-
function LinearAlgebra.mul!(x_temp::AbstractArray{T}, A::DerivativeOperator{T,N}, M::AbstractArray{T}) where {T<:Real,N}
2
+
function LinearAlgebra.mul!(x_temp::AbstractArray{T}, A::DerivativeOperator{T,N}, M::AbstractArray{T}) where {T,N}
4
3
5
4
# Check that x_temp has correct dimensions
6
5
v =zeros(ndims(x_temp))
@@ -27,12 +26,12 @@ function LinearAlgebra.mul!(x_temp::AbstractArray{T}, A::DerivativeOperator{T,N}
27
26
end
28
27
end
29
28
30
-
# A more efficient mul! implementation for a single, regular-grid, centered difference
31
-
# DerivativeOperator operating on a 2D or 3D AbstractArray
29
+
# A more efficient mul! implementation for a single, regular-grid, centered difference,
30
+
#scalar coefficient DerivativeOperator operating on a 2D or 3D AbstractArray
32
31
for MT in [2,3]
33
32
@evalbegin
34
-
function LinearAlgebra.mul!(x_temp::AbstractArray{T,$MT}, A::DerivativeOperator{T,N,false,T2,S1}, M::AbstractArray{T,$MT}) where {T<:Real,N,T2,SL,S1<:SArray{Tuple{SL},T,1,SL}}
35
-
33
+
function LinearAlgebra.mul!(x_temp::AbstractArray{T,$MT}, A::DerivativeOperator{T,N,false,T2,S1,S2,T3}, M::AbstractArray{T,$MT}) where
0 commit comments