Skip to content

Instantly share code, notes, and snippets.

@nitaruto
nitaruto / comp_pow.py
Created Aug 26, 2021
compare x ** p vs np.exp(p * np.log(x))
View comp_pow.py
#!/usr/bin/env python3
import numpy as np
import timeit
def setup(N):
x = np.random.rand(N)
return x
def pow1(x, p):
@nitaruto
nitaruto / install_memo.md
Created Sep 13, 2021
install memo of git-ghost on Ubuntu 16.04
View install_memo.md
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 a_weight_fir_16k.txt
-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