Code Monkey home page Code Monkey logo

Comments (2)

csurfer avatar csurfer commented on May 22, 2024

@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.

jankoslavic avatar jankoslavic commented on May 22, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.