Revision 4da45df4dc3ac25061731e83afc76c9970029794 authored by Andreas Stuhlmüller on 02 July 2017, 20:13:26 UTC, committed by GitHub on 02 July 2017, 20:13:26 UTC
More sample/dist arg checks
tensor.js
'use strict';
var Tensor = require('adnn/tensor');
var special = require('./math/special');
Tensor.prototype.logGamma = function() {
var out = new Tensor(this.dims);
var n = this.data.length;
while (n--) {
out.data[n] = special.logGamma(this.data[n]);
}
return out;
};
module.exports = Tensor;
Computing file changes ...