search for: pythoncod

Displaying 3 results from an estimated 3 matches for "pythoncod".

Did you mean: pythoncode
2009 Mar 08
0
[RFC] running octave, python from within R
...;t know what this term stands for use google images :-) It is one file that will interface shogun to octave,r,python,matlab. It provides commands to run code in foreign languages: Example: library(elwms) A=matrix(c(1.0,2,3, 4,5,6), nrow = 2, ncol=3) B=matrix(c(1.0,1,1, 0,0,0), nrow = 2, ncol=3) pythoncode=sprintf('import numpy\nresults=tuple([A+B])'); elwms('run_python', 'pythoncode', 'print "hi"') C=elwms('run_python', 'A',A, 'B',B, 'pythoncode', pythoncode) D=elwms('run_python', 'A',A+1, 'B',B*2, ...
2006 Sep 13
1
[Fwd: Re: [Swig-user] wrapping enums for python]
...gt; > in C++: > > enum min_max > { > SS_MIN = 0, > SS_MAX = 100 > }; > > > I get: > > print swigtest.SS_MAX > 100 > > and I would like to get: > > print swigtest.SS_MAX > SS_MAX > > So the idea was to use something like: > > %pythoncode %{ > > class Enum(int): > def __new__(cls, arg, desc ): > self = int.__new__(cls, arg) > self.desc = desc > return self > def __repr__( self ): > return self.desc > > %} > > and then somehow in the .py file > > SS_MI...
2012 May 28
1
[LLVMdev] Help with Values sign
Why are you changing the data layout to be little-endian? Joey On 28 May 2012 10:13, Santos Merino <santitox at hotmail.es> wrote: > In my main function after generate the code and before start the execution > via > JIT I do this: > > ExecutionEngine *EE = EngineBuilder(M).create(); > string str = > EE->getTargetData()->getStringRepresentation();