(fnString)
| 3991 | } |
| 3992 | |
| 3993 | function toInner(fnString) { |
| 3994 | // crude, but should be sufficient for now |
| 3995 | // function() { body } |
| 3996 | fnString = fnString.toString().split('{'); |
| 3997 | fnString.shift(); |
| 3998 | // body } |
| 3999 | fnString = fnString.join('{'); |
| 4000 | fnString = fnString.split('}'); |
| 4001 | fnString.pop(); |
| 4002 | // body |
| 4003 | |
| 4004 | return fnString.join('}').split('\n').join('\n ').replace('product.weights = _this.inputValue;', inputSize === 1 ? 'product.weights = [input[_i]];' : 'product.weights = input[_i];').replace('product.deltas[i] = 0;', '').replace('product.deltas[column] = 0;', '').replace('left.deltas[leftIndex] = 0;', '').replace('right.deltas[rightIndex] = 0;', '').replace('product.deltas = left.deltas.slice(0);', ''); |
| 4005 | } |
| 4006 | |
| 4007 | function fileName(fnName) { |
| 4008 | return 'src/recurrent/matrix/' + fnName.replace(/[A-Z]/g, function (value) { |
no test coverage detected