Skip to content

Commit

Permalink
Convert tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Jan 19, 2024
1 parent cd1c12c commit 1d50f7e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ext/StructArraysLinearAlgebraExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ const StructMatrixC{T, A<:AbstractMatrix{T}} = StructArrays.StructMatrix{Complex
const StructVectorC{T, A<:AbstractVector{T}} = StructArrays.StructVector{Complex{T}, @NamedTuple{re::A, im::A}}

function _mul!(C, A, B, alpha, beta)
mul!(C.re, A.re, B.re, alpha, beta)
mul!(C.re, A.im, B.im, -alpha, oneunit(beta))
mul!(C.im, A.re, B.im, alpha, beta)
mul!(C.im, A.im, B.re, alpha, oneunit(beta))
C
mul!(C.re, A.re, B.re, alpha, beta)
mul!(C.re, A.im, B.im, -alpha, oneunit(beta))
mul!(C.im, A.re, B.im, alpha, beta)
mul!(C.im, A.im, B.re, alpha, oneunit(beta))
C
end

function mul!(C::StructMatrixC, A::StructMatrixC, B::StructMatrixC, alpha::Number, beta::Number)
_mul!(C, A, B, alpha, beta)
_mul!(C, A, B, alpha, beta)
end
function mul!(C::StructVectorC, A::StructMatrixC, B::StructVectorC, alpha::Number, beta::Number)
_mul!(C, A, B, alpha, beta)
_mul!(C, A, B, alpha, beta)
end

end

0 comments on commit 1d50f7e

Please sign in to comment.