Skip to content

Commit

Permalink
fix(matrices): fix involutory eltype
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 9, 2024
1 parent 6f84399 commit 277cd8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/matrices/involutory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ size(A::Involutory) = (A.n, A.n)
@boundscheck checkbounds(A, i, j)

# size and hilbert element
n = T(A.n)
n = A.n
element = A.M[i, j]

# compute element
Expand All @@ -49,8 +49,9 @@ size(A::Involutory) = (A.n, A.n)
for k = 1:i-1
d = -(n + k) * (n - k) * d / (k * k)
end

element = d * element
end

return element
return T(element)
end

0 comments on commit 277cd8e

Please sign in to comment.