Skip to content

Instantly share code, notes, and snippets.

View IshitaTakeshi's full-sized avatar
💭
kernel panic

Takeshi Ishita IshitaTakeshi

💭
kernel panic
View GitHub Profile
@IshitaTakeshi
IshitaTakeshi / benchmark_histogram.py
Last active May 24, 2018 11:02
Comparison of histogram calculation in NumPy and CuPy
import json
import timeit
from collections import defaultdict
n_executions = 10000
def run_numpy(n_samples, n_bins):
setup = """
import numpy as xp
@IshitaTakeshi
IshitaTakeshi / README.md
Last active November 25, 2022 16:56
Calling LAPACK/BLAS from Kotlin Native

Calling LAPACK/BLAS from Kotlin Native

The original C file is cblas_example1.c

$cinterop -def liblapack.def -o build/c_interop/liblapack
$kotlinc-native lapack.kt -library build/c_interop/liblapack
$./program.kexe 
11.0
14.0
@IshitaTakeshi
IshitaTakeshi / LICENSE
Last active December 11, 2019 05:15
Huber weighted IRLS
Copyright (C) 2006, Jonathan E. Taylor
All rights reserved.
Copyright (c) 2006-2008 Scipy Developers.
All rights reserved.
Copyright (c) 2009-2018 statsmodels Developers.
All rights reserved.