Coder Social home page Coder Social logo

Runtime exception in getNumberOfGeneratedObjects when using createPermutationGenerator with treatAsIdentical=false about combinatoricslib HOT 4 CLOSED

dpaukov avatar dpaukov commented on June 30, 2024
Runtime exception in getNumberOfGeneratedObjects when using createPermutationGenerator with treatAsIdentical=false

from combinatoricslib.

Comments (4)

dpaukov avatar dpaukov commented on June 30, 2024

From [email protected] on March 10, 2014 05:08:58

This is not an issue, this is expected behavior as the exception says that the initial vector has duplicates: CombinatoricsVector=([apple, orange, apple, orange], size=4).

The method getNumberOfGeneratedObjects() can't calculate a number of the generated objects if the initial vector has duplicates and the generator should treat the vector as identical. In this case it throws a Runtime exception notifying the caller that number of the generated objects has to be calculated by another way. The permutation generator works correctly as it generates the correct objects.

from combinatoricslib.

dpaukov avatar dpaukov commented on June 30, 2024

From [email protected] on March 10, 2014 05:09:14

Owner: [email protected]

from combinatoricslib.

dpaukov avatar dpaukov commented on June 30, 2024

From [email protected] on March 18, 2014 14:51:03

Labels: -Type-Defect Type-Other

from combinatoricslib.

dpaukov avatar dpaukov commented on June 30, 2024

From [email protected] on June 19, 2014 05:18:42

Works per design

Status: WontFix

from combinatoricslib.

Related Issues (18)

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.