swh:1:snp:3af1a03cd091600016317ad7197cfc7dfd1319c7
Tip revision: 8f67f41233c7a10d79cd9dc8e221fb1adda20a46 authored by Andreas Stuhlmüller on 21 October 2016, 20:37:42 UTC
0.9.5
0.9.5
Tip revision: 8f67f41
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;