The computeTensorizedSP seems to drop entries less than 1E-10,
This is not very reasonable when using Float64 and can cause weird behaviors when making use of tensor products.
MWE
using PolyChaos
op = Uniform_11OrthoPoly(20, Nrec = 40)
t2 = Tensor(2, op)
l1 = [t2.get([i, i]) for i=0:op.deg]
l2 = computeSP2(op)
The
computeTensorizedSP
seems to drop entries less than1E-10
, This is not very reasonable when using Float64 and can cause weird behaviors when making use of tensor products.MWE
l1
is not equal tol2
computeTensorizedSP
is the default method used to constructTensor
, see https://github.com/SciML/PolyChaos.jl/blob/e20be072e31754f1f7627628c65b43b4111b6455/src/typesTensor.jl#L15 In the following example,Tensor.get()
would not work at high orders as the denominators are zero.