Hi everybody! What is the simplest way of constructing e.g. a (2,3,4)-shaped numpy array containing sympy zeros?
At the moment, I'm doing a = numpy.array(sympy.zeros((1,2*3*4))).reshape((2,3,4)) but I think that having to reshape is a bit ugly. I am also considering: a = numpy.zeros((2,3,4),dtype='object') which makes it possible to later do e.g. from sympy.abc import x a[0,0,0] = x but I'm not sure if there are some unfortunate side-effects if I don't make sure to set all components explicitely to be sympy quantities? On a related note, it is possible to just tell numpy that the default value of each component in an array should be: <class 'sympy.core.numbers.Zero'> ? I'm using sympy 0.6.7 and numpy 1.6.1 Thanks! Torquil Sørensen -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
