python - howto create a multidimensional Array of floats with Pythonnet -
i'm using pythonnet (http://pythonnet.sf.net) bind python framework , .net library (i know if ironpython not question).
using pythonnet, can create array of floats, , initialize sequence of values:
>>> system import * >>> array[float]([1., 2.]) <system.double[] object @ 0x8a6c46c>
i need pass 3x3 array of floats method in the .net library, , can't figure out how create this.
use array.createinstance:
>>> = array.createinstance(double, 3, 3)
reference: http://msdn.microsoft.com/en-us/library/system.array.createinstance%28v=vs.90%29.aspx
Comments
Post a Comment