JSFiddle - React, Tailwind, and code Playground
by cdaringe
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.js"></script>
<div>Log:</div>
<ul id="log">
</ul>
JavaScript
var log = function(text) {
$('#log').append('<li>' + text + '</li>');
}
log('test');
log('logtest2');
// Algorithm 1
// a function computing the local value of the objective F(w) equation 6
// a function computing the local gradient of the objective function equation 9
// the overall algorithm (Algorithm 1)
A = [[1,2,3],
[4,5,6],
[7,3,9]];
x = [3,1,2];
b = numeric.dot(A,x);
log(b);