Hey, I have some code that I wrote with my Enthought python distribution on my laptop which uses the ix_ command for arrays and matrices in numpy, for example:
a=array([1,2,3,4,5,6]) b=[3,4] a[ix_(b)] gives: array([4,5]) but when using Sage on the computers at work it does not recognize this command (regardless of whether I start up in sage, python, or ipython). Having looked at the documentation I have found the sage command matrix_from_rows_and_columns which seems to do the same job, but that requires the array or matrix to be made into a Sage matrix, which I would prefer not to do so as to have compatibility across multiple platforms. Is there a way around this or a specific reason why Sage does not support the ix_ command? Thanks, Joe --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---