Is D a good choice for embedding python/octave/julia
Ellery Newcomer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 14 22:56:36 PDT 2016
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..
More information about the Digitalmars-d-learn
mailing list