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
using SpecialFunctions | |
function SpecialFunctions.erfinv(x::BigFloat) | |
c = √big(π) / 2 | |
y::BigFloat = erfinv(Float64(x)) | |
y += c * exp(y * y) * (x - erf(y)) | |
y += c * exp(y * y) * (x - erf(y)) | |
y += c * exp(y * y) * (x - erf(y)) | |
return y | |
end |
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
import numpy | |
import onnx | |
import onnxruntime | |
def infer(operator, *inputs, outputs=1, **attributes): | |
tags = { | |
numpy.void: onnx.TensorProto.UNDEFINED, | |
numpy.float32: onnx.TensorProto.FLOAT, | |
numpy.uint8: onnx.TensorProto.UINT8, | |
numpy.int8: onnx.TensorProto.INT8, |
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
#include "FILE.h" | |
#include <stdarg.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
static uint_least32_t _modifier(unsigned c) | |
{ | |
unsigned s = c - ' '; | |
return s < 32 ? UINT32_C(1) << s : UINT32_C(0); |
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
#include <stdio.h> | |
static void print128(unsigned __int128 a) | |
{ | |
const unsigned long long base = 10000000000000000000; | |
if (a >> 64) | |
printf("%llu%0.19llu\n", (unsigned long long)(a / base), (unsigned long long)(a % base)); | |
else | |
printf("%llu\n", (unsigned long long)a); |
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
#include <gmpxx.h> | |
#include <limits> | |
#include <iostream> | |
#include <iomanip> | |
static mpq_class _rational(mp_bitcnt_t iterations) | |
{ | |
mpz_class K = 6; | |
mpz_class M = 1; | |
mpz_class L = 13591409; |
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
#include <array> | |
#include <cmath> | |
#include <iostream> | |
#include <ccomplex> | |
#include <fftw3.h> | |
namespace { | |
template<typename> | |
class Plan; |
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
function 八字命學(stdlib) | |
{ | |
"use asm"; | |
function main() | |
{ | |
} | |
return main; | |
} |
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
diff --git a/_layouts/default.liquid b/_layouts/default.liquid | |
index 2aab8d0..998ad36 100644 | |
--- a/_layouts/default.liquid | |
+++ b/_layouts/default.liquid | |
@@ -1,5 +1,5 @@ | |
<!DOCTYPE html> | |
-<html lang="en"> | |
+<html lang="zh-Hant"> | |
<head> | |
<meta charset="UTF-8"> |
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
<!DOCTYPE html> | |
<html lang="zh-TW" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="profile" href="http://gmpg.org/xfn/11"> | |
<title>我方開叫一線花色</title> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:,i,b,bi%7CMontserrat:,b"> | |
<link rel='stylesheet' href='https://jdh8.org/wp-content/themes/twentysixteen/style.css?ver=4.6.1'> | |
<link rel="stylesheet" href="https://jdh8.github.io/css/wordpress.css"> |
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
template<typename T> | |
class Comparable | |
{ | |
friend bool operator!=(const T& x, const T& y) { return !(x == y); } | |
friend bool operator>(const T& x, const T& y) { return y < x; } | |
friend bool operator<=(const T& x, const T& y) { return !(y < x); } | |
friend bool operator>=(const T& x, const T& y) { return !(x < y); } | |
}; | |
template<typename T> |
NewerOlder