资源算法lgamma-and-gamma-using-SSE2

lgamma-and-gamma-using-SSE2

2020-01-14 | |  28 |   0 |   0

lgamma-and-gamma-using-SSE2

Implementation of the Log Gamma and Gamma functions in 64-bit assembly.

c-ish version: lgamma(z):

int j;
double x, tmp, y, ser;
if (z <= 0) return NAN;
y = x = z;
tmp = x + 5.2421875;
tmp = (x + 0.5) * log(tmp) - tmp
ser = 0.999999999999997092;
for (int j = 0; j < 14; j++) 
	ser += cof[j] / ++y;

return tmp + log(2.5066282746310005 * ser / x);

gamma(z):

return exp(lgamma(z))


上一篇:Lgamma-PageRank_Paper

下一篇:TensorFlow-Examples

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • shih-styletransfer

    shih-styletransfer Code from Style Transfer ...