Skip to content

Instantly share code, notes, and snippets.

Avatar

Hajime Senuma hajimes

  • University of Tokyo
View GitHub Profile
@hajimes
hajimes / logsumexp-asm.js
Last active Jan 29, 2017
handwritten asm.js code for logsumexp
View logsumexp-asm.js
// MIT License. Copyright (c) 2016 Hajime Senuma.
/**
* asm.js module for logsumexp
*/
function asmModule(stdlib, foreign, heap) {
'use asm';
var exp = stdlib.Math.exp;
var log = stdlib.Math.log;