Opened 3 years ago

Closed 3 years ago

#24449 closed defect (duplicate)

doctest failure in matrix/special.py

Reported by: vdelecroix Owned by:
Priority: blocker Milestone: sage-duplicate/invalid/wontfix
Component: documentation Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vdelecroix)

Solved with #24445


On sage-8.2.beta1 with many optional package installed

sage -t --long src/sage/matrix/special.py
**********************************************************************
File "src/sage/matrix/special.py", line 413, in sage.matrix.special.random_matrix
Failed example:
    random_matrix(K, 2, 5)
Expected:
    [      1       a       1 2*a + 1       2]
    [    2*a   a + 2       0       2       1]
Got:
    [      a       0       2       2       1]
    [      a   a + 2   a + 1 2*a + 1       2]
**********************************************************************
File "src/sage/matrix/special.py", line 417, in sage.matrix.special.random_matrix
Failed example:
    random_matrix(RR, 3, 4, density=0.66)
Expected:
    [ 0.000000000000000 -0.806696574554030 -0.693915509972359  0.000000000000000]
    [ 0.629781664418083  0.000000000000000 -0.833709843116637  0.000000000000000]
    [ 0.922346867410064  0.000000000000000  0.000000000000000 -0.940316454178921]
Got:
    [ 0.000000000000000  0.676820913302280 -0.940316454178921  0.000000000000000]
    [ 0.605928518093544  0.000000000000000 -0.693915509972359  0.000000000000000]
    [ 0.629781664418083  0.000000000000000  0.000000000000000 -0.741052529138296]
**********************************************************************
File "src/sage/matrix/special.py", line 422, in sage.matrix.special.random_matrix
Failed example:
    A = random_matrix(ComplexField(32), 3, density=0.8, sparse=True); A
Expected:
    [                 0.000000000  0.399739209 + 0.909948633*I                  0.000000000]
    [-0.361911424 - 0.455087671*I -0.687810605 + 0.460619713*I  0.625520058 - 0.360952012*I]
    [                 0.000000000                  0.000000000 -0.162196416 - 0.193242896*I]
Got:
    [                 0.000000000  0.332155072 - 0.728572036*I                  0.000000000]
    [ 0.577682751 - 0.276405104*I -0.307172821 + 0.611092515*I -0.162196416 - 0.193242896*I]
    [                 0.000000000                  0.000000000  0.399739209 + 0.909948633*I]
**********************************************************************
1 item had failures:
   3 of  62 in sage.matrix.special.random_matrix
    [439 tests, 3 failures, 1.88 s]

See full patchbot logs at

  • quasar (Using --optional=4ti2,autotools,benzene,bliss,boost,buckygen,cmake,coxeter3,cryptominisat,csdp,d3js,database_cremona_ellcurve,database_jones_numfield,database_kohel,database_mutation_class,database_odlyzko_zeta,database_pari,database_stein_watkins,database_stein_watkins_mini,database_symbolic_data,deformation,dot2tex,frobby,gambit,gap_jupyter,giacpy_sage,gp2c,igraph,latte_int,libbraiding,libhomfly,libogg,lidia,lrslib,mcqd,meataxe,mpfrcx,mpir,nose,notedown,openssl,ore_algebra,pandoc_attributes,pandocfilters,pari_jupyter,plantri,pysingular,python2,python_igraph,pyx,qhull,saclib,sage,scons,singular_jupyter,sirocco,tdlib,termcap,tides,topcom)
  • tmonteil-debian-stretch-32 (Using --optional=4ti2,benzene,bliss,buckygen,cbc,ccache,cmake,coxeter3,cryptominisat,csdp,d3js,database_gap,database_pari,dot2tex,fricas,frobby,gambit,gap_jupyter,gap_packages,gdb,giacpy_sage,gmpy2,gp2c,igraph,latte_int,libbraiding,libhomfly,libogg,lidia,lrslib,mcqd,meataxe,mpir,normaliz,notedown,ore_algebra,pandoc_attributes,pandocfilters,pari_jupyter,plantri,pynormaliz,pysingular,python2,python_igraph,pyx,rst2ipynb,saclib,sage,scons,singular_jupyter,sip,sirocco,tdlib,termcap,tides,topcom)
  • sardonis (Using --optional=ccache,fricas,gdb,meataxe,mpir,openssl,python2,sage)

Though on the following machine doctests pass

Change History (8)

comment:1 Changed 3 years ago by vdelecroix

  • Description modified (diff)

comment:2 Changed 3 years ago by vdelecroix

  • Component changed from PLEASE CHANGE to documentation
  • Description modified (diff)

comment:3 Changed 3 years ago by vdelecroix

  • Description modified (diff)

comment:4 Changed 3 years ago by vdelecroix

  • Description modified (diff)

comment:5 follow-up: Changed 3 years ago by jdemeyer

Could this be a "duplicate" of #24445?

comment:6 in reply to: ↑ 5 Changed 3 years ago by vdelecroix

Replying to jdemeyer:

Could this be a "duplicate" of #24445?

I believe the answer is yes. Thanks for the pointer.

comment:7 Changed 3 years ago by vdelecroix

  • Description modified (diff)
  • Milestone changed from sage-8.2 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

comment:8 Changed 3 years ago by jdemeyer

  • Resolution set to duplicate
  • Status changed from needs_review to closed
Note: See TracTickets for help on using tickets.