Indeed, this seems very reasonable. It might be better to implement it separately, though, since computing A^*A might take much longer than just squaring the elements and adding them, to get trace(A^*A).
-Keshav -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org