diff --git a/src/arrays/stiefel_lie_algebra_horizontal.jl b/src/arrays/stiefel_lie_algebra_horizontal.jl index fcb8841ac..ee1d11dae 100644 --- a/src/arrays/stiefel_lie_algebra_horizontal.jl +++ b/src/arrays/stiefel_lie_algebra_horizontal.jl @@ -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