> > So ... I suspect there's a lot of code in sage where immutable vectors > wouldn't hurt, because a lot of operations will rely on the default > arithmetic, which creates new vectors for results. However, there are some > places where it would be a problem. >
Precisely this many failures if the default is mutable=False: ---------------------------------------------------------------------- sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/cyclic_covers/cycliccover_finite_field.py # 29 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/plot/plot3d/shapes2.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/base.py # 3 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/library.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/triangulation/point_configuration.py # 4 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/hyperplane_arrangement/arrangement.py # 4 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modular/modform_hecketriangle/readme.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/quadratic_forms/genera/genus.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/structure/element.pyx # 3 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modular/abvar/abvar.py # 9 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/free_module_element.pyx # 8 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/quadratic_forms/quadratic_form__neighbors.py # 5 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/stats/distributions/discrete_gaussian_lattice.py # 6 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/algebras/cluster_algebra.py # 14 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/chow_group.py # 17 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/homology/homology_vector_space_with_basis.py # 122 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/variety.py # 14 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/divisor.py # 64 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/ppl_lattice_polytope.py # 44 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/triangulation/element.py # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/combinat/finite_state_machine.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/crypto/block_cipher/present.py # 34 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/parent.py # 5 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/numerical/interactive_simplex_method.py # 53 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/numerical/backends/interactivelp_backend.pyx # 76 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/weierstrass_covering.py # 26 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/ppl_lattice_polygon.py # 33 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/integral_points.pyx # 9 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/weierstrass.py # 33 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/elliptic_curves/jacobian.py # 17 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/rings/polynomial/real_roots.pyx # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/homology/homology_morphism.py # 43 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/homology/algebraic_topological_model.py # 15 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/vector_double_dense.pyx # 6 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/vector_real_double_dense.pyx # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/schemes/toric/divisor_class.pyx # 8 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/fg_pid/fgp_element.py # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/homology/chain_homotopy.py # 15 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/vector_modn_dense.pyx # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/vector_integer_dense.pyx # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/quadratic_forms/qfsolve.py # 1 doctest failed sage -t --warn-long 116.5 --random-seed=0 src/sage/functions/spike_function.py # 5 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/geometry/polyhedron/lattice_euclidean_group_element.py # 3 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/modules/vector_complex_double_dense.pyx # 2 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/topology/cubical_complex.py # 4 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/topology/cell_complex.py # 16 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/topology/simplicial_complex_morphism.py # 12 doctests failed sage -t --warn-long 116.5 --random-seed=0 src/sage/topology/simplicial_complex.py # 4 doctests failed ---------------------------------------------------------------------- I looked into some. They use vectors like lists or mutable matrices. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/d66b5c20-d9e8-41ec-b431-9a72cbbe04e3n%40googlegroups.com.