Sterling wrote: > When I use numpy to calculate the norm, this works fine: > linalg.norm(y, ord=2) > But if I want to use: > linalg.norm(y, ord=inf) > NameError: name 'inf' is not defined. What am I doing wrong?
Use the "inf" defined in the numpy library: sage: import numpy sage: y=numpy.array([1,2,3]) sage: numpy.linalg.norm(y, ord=numpy.inf) 3 Jason -- Jason Grout --~--~---------~--~----~------------~-------~--~----~ 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-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
