sudo apt-get install golang
# set in ~/.bashrc like:
export GOPATH=$HOME/work/go
export PATH=$GOPATH/bin:$PATH
mkdir -p $GOPATH
go get golang.org/dl/go1.16
go1.16 download
View git_ghost_install_memo.md
View a_weight_fir_16k.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-1.6382357e-06 | |
-1.2934910e-06 | |
-1.7385587e-06 | |
-1.3888608e-06 | |
-1.8607494e-06 | |
-1.5019314e-06 | |
-2.0060450e-06 | |
-1.6312799e-06 | |
-2.1713256e-06 | |
-1.7674181e-06 |
View comp_pow.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import numpy as np | |
import timeit | |
def setup(N): | |
x = np.random.rand(N) | |
return x | |
def pow1(x, p): |