code: public static DoubleMatrix solve(DoubleMatrix A, DoubleMatrix B) {
  		A.assertSquare();
  		DoubleMatrix X = B.dup();
  		int[] ipiv = new int[B.rows];
  		SimpleBlas.gesv(A.dup(), ipiv, X);
  		return X;
  	}
docs: Solves the linear equation A*X = B.