Comments (2)
@jankoslavic: I ran the same code with probably some indentation fixes and it ran without a glitch for me. The code I ran was:
%%heat
def gauss(A, b):
Ab = np.column_stack((A, b))
for p, pivot_vrsta in enumerate(Ab[:-1]):
for vrsta in Ab[p + 1:]:
if pivot_vrsta[p]:
vrsta[p:] = vrsta[p:] - pivot_vrsta[p:] * vrsta[p] / pivot_vrsta[p]
else:
raise Exception('Division with 0.')
return Ab
import numpy as np
n = 40
gauss(np.random.random((n, n)),np.random.random(n))
I suspect something wrong with your setup. One easy way to verify is to create a virtualenv
and install py-heat-magic
within it. Then run the above. As the magic internally installs all the dependency needed for the above code, it will run and you might get a better idea as to what might be going wrong otherwise.
from pyheatmagic.
@csurfer I have updated conda update conda
and then conda update --all
and now everything works as it should. Thank you for your effort. Great package!
from pyheatmagic.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyheatmagic.