#13393: Vector normalization
--------------------------------------------+-------------------------------
Reporter: chrisjamesberg | Owner: Chris Berg
Type: defect | Status: positive_review
Priority: major | Milestone: sage-5.7
Component: linear algebra | Resolution:
Keywords: vector, normalize | Work issues:
Report Upstream: N/A | Reviewers: Luis Serrano,
Benjamin Jones
Authors: Chris Berg, Eviatar Bach | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------+-------------------------------
Description changed by jdemeyer:
Old description:
> Fix vector normalization so that it agrees with the standard definition
> of normalizing a vector. Right now it divides the entries of the vector
> by the first nonzero entry of the vector. For instance:
>
> {{{sage: v = vector([1,2,3])}}}
>
> {{{sage: v.normalize()}}}
>
> {{{(1, 2, 3)}}}
>
> Shouldn't the default implementation be the Euclidean norm? Especially
> since v.norm() returns the Euclidean norm.
>
> --------
>
> Apply combined.patch
New description:
Fix vector normalization so that it agrees with the standard definition of
normalizing a vector. Right now it divides the entries of the vector by
the first nonzero entry of the vector. For instance:
{{{sage: v = vector([1,2,3])}}}
{{{sage: v.normalize()}}}
{{{(1, 2, 3)}}}
Shouldn't the default implementation be the Euclidean norm? Especially
since v.norm() returns the Euclidean norm.
--------
'''Apply''' [attachment:combined.patch] and
[attachment:trac_13393_reviewer.patch]
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13393#comment:39>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
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.