Skip to content

Commit

Permalink
Merge pull request #169 from JuliaGNI/remove_if_statement
Browse files Browse the repository at this point in the history
Removed if statement.
  • Loading branch information
michakraus authored Aug 28, 2024
2 parents 5536a75 + 1f3bc3f commit 20bddd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/arrays/stiefel_lie_algebra_horizontal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ end

function Base.zeros(backend::KernelAbstractions.Backend, ::Type{StiefelLieAlgHorMatrix{T}}, N::Integer, n::Integer) where T
StiefelLieAlgHorMatrix(
zeros(backend, SkewSymMatrix{T}, n),
N == n ? KernelAbstractions.allocate(backend, T, N-n, n) :
KernelAbstractions.zeros(backend, T, N-n, n), N, n)
zeros(backend, SkewSymMatrix{T}, n),
KernelAbstractions.zeros(backend, T, N-n, n), N, n)
end


Expand Down

0 comments on commit 20bddd6

Please sign in to comment.