Skip to content

Commit

Permalink
Removed if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
benedict-96 committed Aug 27, 2024
1 parent 5536a75 commit 1f3bc3f
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 1f3bc3f

Please sign in to comment.