~~~
val A = new DoubleMatrix(n, n, Array.fill(n * n)(rand.nextDouble()): _*)
val b = A.mult(DoubleMatrix.zeros(n, 1))
~~~