Programming/Python | Posted by 알 수 없는 사용자 2009. 1. 29. 22:27

dimension of matrix ( or array )

>>> U = random.rand ( 200, 20 )
>>> shape ( U )
( 200, 20 )

>>> size ( U ) #return total element of the matrix ( array )
4000