Skip to content

Instantly share code, notes, and snippets.

View beru's full-sized avatar
😷
Caught 2019-nCoV

beru beru

😷
Caught 2019-nCoV
View GitHub Profile
#include <cstdio>
#include <cmath>
#define PI 3.14159265358979323846f
#define DEG2PI (PI / 180.0f)
#define PI2DEG (180.0f / PI)
#define EXTRA_PRECISION
元の英文
DeZero is a deep learning framework from zero. All code is
written in python, understandable code and no blackbox library.
It provides automatic differentiation APIs based on the
define-by-run approach. And object-oriented high-level APIs to
build and train neural networks. It also supports GPU for high
performance training and inference.
こうした方が良いんじゃないかと思う英文
@beru
beru / cmp_lists.txt
Last active October 19, 2019 17:27
compare lists
50 65 100 160
80 95 130 190
110 125 160 220
50 50 50 50
110 110 110 110
65 65 65 65
125 125 125 125
100 100 100 100
@beru
beru / variance_covariance_matrix.py
Created September 8, 2019 05:23
分散共分散行列と相関係数
import numpy as np
import numpy.linalg as LA
import matplotlib.pyplot as plt
from pprint import pprint
# original : https://qiita.com/Seiji_Tanaka/items/5c8041dbd7da1510fbe9
# https://mathtrain.jp/covariance
# https://examist.jp/mathematics/data/kyoubunsan-soukankeisuu/
@beru
beru / gr_peach_memcpy.cpp
Last active June 16, 2019 19:55
GR_PEACHでメモリコピーの時間測定
// GR-PEACH mbed style project (template V2.03)
// main.cpp: Public domain
#include "mbed.h"
#include "Timer.h"
#include "dma_if.h"
#include "r_bsp_cmn.h"
#include "dcache-control.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <windows.h>
void divide_by_power_of_two_test1()
{
for (int n = 0; n < 17; ++n) {
#include <Windows.h>
#include <stdio.h>
#include <algorithm>
struct CStopWatch final
{
const char* title;
const char* type;
LARGE_INTEGER frequency;
LARGE_INTEGER startTime;
#include <Windows.h>
#include <stdio.h>
struct CStopWatch final
{
const char* title;
LARGE_INTEGER frequency;
LARGE_INTEGER startTime;
CStopWatch( const char* pszTitle )
; Script genferated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Microsoft Visual Studio 6.0 Service Pack 6
AppVerName=Microsoft Visual Studio 6.0 Service Pack 6
AppPublisher=Microsoft Corporation
AppPublisherURL=http://www.microsoft.com
AppSupportURL=http://www.microsoft.com
AppUpdatesURL=http://www.microsoft.com
; Script genferated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Microsoft Visual Basic 6.0
AppVerName=Microsoft Visual Basic 6.0
AppPublisher=Microsoft Corporation
AppPublisherURL=http://www.microsoft.com
AppSupportURL=http://www.microsoft.com
AppUpdatesURL=http://www.microsoft.com