False results when computing bases/ranks on minors

Questions and problems about using polymake go here.
User avatar
hampe
Developer
Posts: 48
Joined: 29 Apr 2011, 10:42

False results when computing bases/ranks on minors

Postby hampe » 01 Feb 2012, 15:39

I sometimes get false results when I compute linear algebra stuff like basis_cols, rank, etc on matrix minors. This does not happen for all possible input, but I managed to find a small example that reliably produces a wrong result on my machine (polymake 2.10) as well as on the web version of polymake (which says it's 2.11):

Code: Select all

$m = new Matrix<Integer>([[0,0,1,0],[1,1,1,1],[0,0,0,1]]); $i = new IncidenceMatrix([[0,2]]); print basis_cols($m->minor($i->row(0),All)); # ->produces {2} instead of {2,3}
Similarly, if I write rank($m->minor...), I get 1 instead of 2. This doesn't change if I replace Integer by Rational and it happens on the perl side as well as on the c++ side (using similar code). If I do basis_cols(new Matrix(...)), the result is correct.

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: False results when computing bases/ranks on minors

Postby gawrilow » 01 Feb 2012, 17:15

I'll look into it.

Generally, you'd better post such bug reports directly as Trac tickets. The Trac system shares the user credentials with the SVN repository.

User avatar
hampe
Developer
Posts: 48
Joined: 29 Apr 2011, 10:42

Re: False results when computing bases/ranks on minors

Postby hampe » 01 Feb 2012, 17:36

No problem - how do I do that? :D I have never used trac before. I can probably look up some general tutorials on trac on the internet, but everything I found so far involved elaborate setups of databases etc... is there a simpler way to use this? (Maybe even a GUI frontend? *hope*) :)
If not, maybe I can find someone at the workshop who will show me how to use it... :-)

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: False results when computing bases/ranks on minors

Postby gawrilow » 01 Feb 2012, 18:00

Nothing simpler than that: you just log in under http://www.polymake.org/trac/polymake and click on "New Ticket".

User avatar
hampe
Developer
Posts: 48
Joined: 29 Apr 2011, 10:42

Re: False results when computing bases/ranks on minors

Postby hampe » 01 Feb 2012, 18:17

oh wow ... that IS easy :D Thank you!


Return to “Helpdesk”