#4207: implement an is_close function for matrices and vectors
----------------------------+-----------------------------------------------
Reporter: jason | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.1.3
Component: linear algebra | Keywords:
----------------------------+-----------------------------------------------
{{{
[05:16] <mabshoff> One thing we should definitely do is to have some
infrastructure to give a vector or matrix and check if all values are
without $foo in some norm to a given vector or matrix
[05:16] <jason-> like numpy.allclose?
[05:17] <jason-> but that doesn't use norms
[05:17] <jason-> it just compares entry-wise
[05:17] <mabshoff> Well, we can do entry by entry or some vector/matrix
norm.
[05:17] <jason-> well, you can't choose the norm.
[05:17] <mabshoff> the numpy.allclose would work in most cases, but we are
mathematicians :)
[05:17] <mabshoff> So using a norm is natural IMHO
[05:18] <jason-> so matrix.is_close(other_matrix, norm='blah')
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4207>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---