You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've just installed the package in a new 1.9 environment and tried using the function tensorgrid but it returns a MethodError. A minimal working example is
using SparseGrids, FastGaussQuadrature
Nt, Wt =tensorgrid(2, 4, gausslegendre)
which produces the following error
ERROR: MethodError: objects of type Vector{Vector{Float64}} are not callable
Use square brackets [] for indexing an Array.
If I instead use the sparsegrid method with the same syntax, everything's fine:
n,w =sparsegrid(2,4,gausslegendre)
produces the correct output.
I've dived a bit into the code and discovered that the code line where tensorW is defined raises the Error. I don't know what the correct output should be, so I couldn't discover much at the moment.
This issue also arises if using julia 1.7 or 1.5 in new environments. Note that I haven't tested every Julia version, I just chose those two.
Best regards,
pmc4
Ps.: Could you please add the bug label to the issue? The option is disabled for me.
The text was updated successfully, but these errors were encountered:
Hi,
I've just installed the package in a new 1.9 environment and tried using the function
tensorgrid
but it returns aMethodError
. A minimal working example iswhich produces the following error
If I instead use the
sparsegrid
method with the same syntax, everything's fine:produces the correct output.
I've dived a bit into the code and discovered that the code line where
tensorW
is defined raises the Error. I don't know what the correct output should be, so I couldn't discover much at the moment.This issue also arises if using julia 1.7 or 1.5 in new environments. Note that I haven't tested every Julia version, I just chose those two.
Best regards,
pmc4
Ps.: Could you please add the bug label to the issue? The option is disabled for me.
The text was updated successfully, but these errors were encountered: