From 277cd8ec3f16f1158ea47d4ad5f49b24c65b0a2e Mon Sep 17 00:00:00 2001 From: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:07:55 +0100 Subject: [PATCH] fix(matrices): fix involutory eltype --- src/matrices/involutory.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/matrices/involutory.jl b/src/matrices/involutory.jl index 0abad47..2b2ba51 100644 --- a/src/matrices/involutory.jl +++ b/src/matrices/involutory.jl @@ -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 @@ -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