Giter VIP home page Giter VIP logo

Comments (4)

nquesada avatar nquesada commented on June 24, 2024 2

or, alternatively, @GregoryMorse , you are most welcome to do a PR fixing it and become a contributor! You can use the example of how this is solved in the hafnian function here

if matshape == (0, 0):

from thewalrus.

thisac avatar thisac commented on June 24, 2024 1

Thanks for bringing this to our attention @GregoryMorse. As of the latest release (v0.18.0), The Walrus no longer uses libwalrus for any calculations. The function corresponding to thewalrus.libwalrus.perm_BBFG_complex is now thewalrus.perm.

The equivalent code to your example above would be:

import numpy as np
import thewalrus as tw

mat = np.zeros((0, 0))+np.zeros((0, 0)) * 1j
tw.perm(mat, method="bbfg")

With that said, it seems like this function has the same issue, so a fix would still be needed to make sure that the permanent function returns 1 for an empty matrix. We will look into fixing this in an upcoming release!

from thewalrus.

nquesada avatar nquesada commented on June 24, 2024

Hi @GregoryMorse --- Could you tell us which version of thewalrus are you using?

from thewalrus.

GregoryMorse avatar GregoryMorse commented on June 24, 2024

Hi @nquesada, version 0.16.1, the one in PyPi

from thewalrus.

Related Issues (20)

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.