make_lsq_spline and conversion to float

Thomas Hilger <[email protected]> Tue, 26 Oct 2021 08:18:52 +0200
Newsgroups gmane.comp.python.scientific.user
Message-ID <CAOOOfF5Or0JaA_duDRBPShXv8GMH8F3+1mxt1hKtS=kjZHY4Sw@mail.gmail.com>
Hello,

When using make_lsq_spline(x,y,t) with x being int64, I am running into the
issue that the x-array is internally converted to float. While on an
int64-level the input x-values are ordered, after the internal conversion
to float, an exception is raised, because as a result some of these values
are identical to each other.

I was wondering about the reason for that internal conversion to float (it
seems to reside only in handling complex dtypes or is there some other
mechanism in Cox-de-Bor algorithm or Cholesky?). It is not obvious to me.

Right now I can solve this problem by shifting the x-values, such that the
numbers are smaller and the conversion does not harm this way. However,
this makes things really slow or very unhandy codewise.

Maybe it is feasible to modify _get_dtype a little?

Thanks and cheers,
Thomas.

_______________________________________________
SciPy-User mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-user.python.org/
Member address: [email protected]