I have been looking for an efficient way for converting a string numpy array to a two dimensional ASCII matrix in python. So for this is the best that I could come up with
def charArrayToAsciiMatrix(strNumpyArray):
for i in range(strNumpyArray):
if(i==0):
AsciiMatrix=numpy.matrix(ord[[c for c in strNumpyArray[i]]])
else:
AsciiMatrix=numpy.vstack(AsciiMatrix,ord[[c for c in strNumpyArray[i]]])
is there a efficient way of doing this?