Hands-on: Temporary arrays
In this exercise we study how NumPy uses computer memory
Source code for this exercise is located in
Try different NumPy array expressions and investigate how much memory is used
in temporary arrays. You can use the Unix command
/usr/bin/time –v for
finding out the maximum memory usage of program. You can find also small utility function
maxmem() for investigating memory usage in
How many temporary arrays can you get for example with uncessary usage of parenthesis?
© CSC - IT Center for Science Ltd.