Skip to content

Instantly share code, notes, and snippets.

View ShigekiKarita's full-sized avatar
🌴
I may be slow to respond.

Shigeki Karita ShigekiKarita

🌴
I may be slow to respond.
View GitHub Profile
@ShigekiKarita
ShigekiKarita / test.d
Last active April 28, 2019 03:06
Comparison ld and gold
private static immutable FuncNum = 10_000;
void main() {
import std.algorithm : map;
import std.array : join;
import std.datetime.stopwatch : benchmark;
import std.file : write, remove;
import std.format : format;
import std.process : execute;
import std.range : iota;
@ShigekiKarita
ShigekiKarita / simd.cpp
Last active May 22, 2018 06:59 — forked from belltailjp/simd.cpp
SSE,AVX組み込み関数を用いたベクトルの内積計算高速化の実験コード
// origin https://gist.githubusercontent.com/belltailjp/4653695/raw/1cf8b5cbb6c3b4d4f9374b8b1ccae702867543ef/simd.cpp
#include <iostream>
#include <random>
#include <algorithm>
#include <xmmintrin.h>
#include <immintrin.h>
@ShigekiKarita
ShigekiKarita / result.txt
Last active February 26, 2016 03:03 — forked from joumyakun/simple_perceptron.py
add nonlinearity
---epoch 9---
source label:-1, data:[0 0 0 0 0 0 0 0]
predoct label:-1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442
-1.12607911 -1.17872689 0.41622946]
OK
source label:1, data:[0 1 0 0 0 0 0 1]
predoct label:1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442
-1.12607911 -1.17872689 0.41622946]
OK
source label:1, data:[1 0 1 0 0 0 0 0]