- or download this
#!/home/weizhong/tools/perl-5.32.0/perl
use PDL;
$PDL::BIGPDL = 1;
...
$Y = ones(1000,500,500);
$Z1 = $X + $Y;
$Z2 = $X / $Y;
- or download this
#!/home/weizhong/tools/Python-3.8.5/python
import numpy as np
X = np.zeros((1000,500,500))
Y = np.ones((1000,500,500))
Z1 = X+Y
Z2 = X/Y
- or download this
#!/bin/csh -f
echo "Python test1.py:";
time ./test1.py
...
time ./test1.py
echo "Perl test1.pl:";
time ./test1.pl