Creates a least-squares solver.
The x, y, and w arguments must not be null.
x
y
w
LeastSquaresSolver(this.x, this.y, this.w) : assert(x.length == y.length), assert(y.length == w.length);