[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread Jason Grout
kcrisman wrote: Referring to http://trac.sagemath.org/sage_trac/ticket/3212, I have to do a little cleaning up before submitting it for review, but have some code for allowing rescaling of matrices by logical scalars not in the base ring. However, in order to do this, I need to return a

[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread William Stein
On Mon, Jun 2, 2008 at 7:17 AM, Jason Grout [EMAIL PROTECTED] wrote: kcrisman wrote: Referring to http://trac.sagemath.org/sage_trac/ticket/3212, I have to do a little cleaning up before submitting it for review, but have some code for allowing rescaling of matrices by logical scalars not in

[sage-devel] Re: Improving rescaling of matrices

2008-06-02 Thread kcrisman
Maybe rescale_row and rescale_col should retain their current semantics, and we should have new methods with_rescaled_row and with_rescaled_col that always return a modified copy and never modify the original.  Then rescale_row and rescale_col could catch the type error from #3212, and