Hi Greg, Great that you’re still using PDL! And thank you for PDL::LinearAlgebra, which you may have seen has been updated for “native complex”.
There isn’t yet a great way to get at NaN/Inf, but I am intending to make core functions that return those, since they are available at the C level in order to implement various parts of PDL::Bad. If someone wants to beat me to it with a PR, please say so here (so we don’t both work on it at the same time) and go ahead! I think that PDL::Bad::nan and PDL::Core::inf (due to where they are used, but perhaps both in PDL::Core) would be the place to put them. In the meantime, “asin(2)” returns NaN, and pdl(‘inf’) returns Inf (via “-pdl(0)->log”). Best regards, Ed From: Grégory Vanuxem<mailto:g.vanu...@gmail.com> Sent: 28 April 2021 15:47 To: pdl-devel<mailto:pdl-devel@lists.sourceforge.net> Subject: [Pdl-devel] NaN, +Inf, -Inf, Inf Hi here, I wrote several years ago PDL-LinearAlgebra and using it last week I noticed that I was using NaN = 0/0, +Inf = 1/0 etc. which is no longer possible. Standards have changed. Do you happen to know how to create these? Greg _______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel
_______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel