eelcohoogendoorn / numga Goto Github PK
View Code? Open in Web Editor NEWGeometric algebra in JAX and numpy
License: MIT License
Geometric algebra in JAX and numpy
License: MIT License
When I tried to run the 'run_chain_numpy.py' example, I got the following error:
NumpyMultiVector.__len__(self)
45 def __len__(self):
---> 46 return self.shape[0]
IndexError: tuple index out of range
I was able to fix this by returning 1
if it self.shape
is an empty tuple:
45 def __len__(self):
46 if len(self.shape)==0:
47 return 1
48 else:
49 return self.shape[0]
This worked, but I am not sure if self.shape
should ever have been an empty tuple to begin with. Maybe the real error is somewhere else?
https://github.com/HigherOrderCO/hvm-core seems like it could be relevant to you
I get the following warning when I run the test_circle_reflect
example:
/private/var/mobile/Containers/Data/Application/77881549-3FA6-4E4B-803F-D53B172FC865/Documents/myrepo/
numga/multivector/multivector.py:311:
RuntimeWarning: divide by zero encountered in divide
return self.copy(values=self.values / other.values)
This is only a warning, so I am not sure if it is a bug.
I suspect the reason for the 'divide by zero' warning is that the center of one of the mirrored circles is at the origin.
There is also a circle with a radius of 5e14 (presumably infinity) being drawn, and I had to set xlim and ylim to +-40 to zoom in to see the other circles.
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.