Hello! I have a question regarding numpy arrays. Lets say I have two arrays:
a = array([1,2,3],dtype=float32) b = array([4,5,6],dtype=int16) I want to build a new array like this: new_array = hstack((row_stack(a),row_stack(b))) The result is: array([[ 1., 4.], [ 2., 5.], [ 3., 6.]], dtype=float32) What I was hoping was that the elements from the b array remain int16. Is it possible to have homogeneous array in numpy? Best regards, Dragan. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users