Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
numpy how to length of vector
Ricardo Passos
Programming language:
Python
2021-07-17 04:14:57
0
Q:
numpy how to length of vector
Charlene Vickers
Code:
Python
2021-02-09 09:01:43
>>> x = np.zeros((3, 5, 2), dtype=np.complex128) >>> x.size 30 >>> np.prod(x.shape) 30
0
Tags
how
"length
vector
New to Communities?
Join the community