apache-storm

How can I serialize a numpy array while preserving matrix dimensions?

How can I serialize a numpy array while preserving matrix dimensions? Question: numpy.array.tostring doesn’t seem to preserve information about matrix dimensions (see this question), requiring the user to issue a call to numpy.array.reshape. Is there a way to serialize a numpy array to JSON format while preserving this information? Note: The arrays may contain ints, …

Total answers: 9