To build:
python setup.py build
Then run the example or test.
Hyper Dual Numbers in Python
Hello, I believe that there is a bug. I contacted the numpy developers, but would there be any chance of seeing this fixed?
Thanks!
Andrea
Sebastian Berg [email protected] via python.org
to scipy-dev
On Sat, 2021-02-13 at 16:24 -0600, Andrea Cortis wrote:
I did try to port PyHD to python3 with 2to3
There are 38 warnings upon compiling (macos Catalina), but then when
I try
to run I get----> 1 from hyperdual import numpy_hyperdual
ValueError: Failed to register dtype for <class
'hyperdual.hyperdual'>:
Legacy user dtypes usingNPY_ITEM_IS_POINTER
orNPY_ITEM_REFCOUNT
areunsupported. It is possible to create such a dtype only if it is
a
structured dtype with names and fields hardcoded at registration
time.
Please contact the NumPy developers if this used to work but now
fails.
Sounds like a simple bug, the code fails to properly initialize the
descriptor flags, which likely just means zero'ing them out.
(NumPy was really designed with being passed a static version of the
struct, although nothing wrong with the design here โ it just will
never be cleaned up).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.