On Tuesday, 15 March 2016 at 05:56:36 UTC, Ellery Newcomer wrote:
On 03/13/2016 02:36 PM, Laeeth Isharc wrote:InterpContext context = new InterpContext(); context.py_stmts(outdent(" import numpy a = numpy.eye(2, dtype='complex128') ")); context.a.to_d!(Complex!double[][] )();nitpicking, but the outdent is unnecessary, py_stmts calls it. hm. maybe that should be documented..
I was in a hurry so just copy and pasted from the unit test... I never do that myself.