sage: A=matrix(QQ, [[2,1],[0,3]]) sage: eval, evecs,mult=A.eigenvectors_right()[0] sage: evec=evecs[0] sage: unitevec=evec/evec.norm() sage: unitevec (1/2*sqrt(2), 1/2*sqrt(2)) sage: parent(eval) Rational Field sage: eval 3 and then: sage: w=(SR^2)(unitevec) sage: parent(w) # works fine Vector space of dimension 2 over Symbolic Ring sage: eval*w (3/2*sqrt(2), 3/2*sqrt(2)) but here's the problem: sage: parent(unitevec) # gives problem Vector space of degree 2 and dimension 1 over Symbolic Ring User basis matrix: [1 1] sage: eval*unitevec ------------------------------------------------------------ Unhandled SIGSEGV: A segmentation fault occurred in Sage. This probably occurred because a *compiled* component of Sage has a bug in it (typically accessing invalid memory) or is not properly wrapped with _sig_on, _sig_off. You might want to run Sage under gdb with 'sage -gdb' to debug this. Sage will now terminate (sorry). ------------------------------------------------------------ Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
This code worked in Sage 4.5.2. I just realized that it now gives a
segfault in 4.6. Does anyone know what is going on?
- [sage-devel] segfault when multiplying QQ constant and SR vect... Jason Grout