array.array is a built-in type, looks like it will be much more efficient than list
for some numerical tasks.
In numpy
I could create a 2-d array easily, for example:
a = numpy.asarray([[1,2][3,4]], dtype='int')
But I couldn't find how to create a 2-d array using array.array
, can I?